diff --git a/generated/v2.19.0/graph_objects/bar_gen.go b/generated/v2.19.0/graph_objects/bar_gen.go index d5ef901..01cf378 100644 --- a/generated/v2.19.0/graph_objects/bar_gen.go +++ b/generated/v2.19.0/graph_objects/bar_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeBar TraceType = "bar" func (trace *Bar) GetType() TraceType { @@ -25,7 +29,7 @@ type Bar struct { // arrayOK: true // type: any // Sets where the bar base is drawn (in position axis units). In *stack* or *relative* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead. - Base ArrayOK[*interface{}] `json:"base,omitempty"` + Base arrayok.Type[*interface{}] `json:"base,omitempty"` // Basesrc // arrayOK: false @@ -85,7 +89,7 @@ type Bar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*BarHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*BarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -102,7 +106,7 @@ type Bar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -114,7 +118,7 @@ type Bar struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -178,7 +182,7 @@ type Bar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -196,7 +200,7 @@ type Bar struct { // arrayOK: true // type: number // Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead. - Offset ArrayOK[*float64] `json:"offset,omitempty"` + Offset arrayok.Type[*float64] `json:"offset,omitempty"` // Offsetgroup // arrayOK: false @@ -254,7 +258,7 @@ type Bar struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -272,7 +276,7 @@ type Bar struct { // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition ArrayOK[*BarTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*BarTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -290,7 +294,7 @@ type Bar struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `value` and `label`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -332,7 +336,7 @@ type Bar struct { // arrayOK: true // type: number // Sets the bar width (in position axis units). - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -644,7 +648,7 @@ type BarHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -656,7 +660,7 @@ type BarHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -668,7 +672,7 @@ type BarHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -685,7 +689,7 @@ type BarHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*BarHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*BarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -697,7 +701,7 @@ type BarHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -709,7 +713,7 @@ type BarHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -726,7 +730,7 @@ type BarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -742,7 +746,7 @@ type BarInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -754,7 +758,7 @@ type BarInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -766,7 +770,7 @@ type BarInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1206,7 +1210,7 @@ type BarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1236,7 +1240,7 @@ type BarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1252,7 +1256,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -1264,7 +1268,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -1290,7 +1294,7 @@ type BarMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*BarMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*BarMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -1302,7 +1306,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1314,7 +1318,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1360,7 +1364,7 @@ type BarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1394,7 +1398,7 @@ type BarMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1427,7 +1431,7 @@ type BarOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1439,7 +1443,7 @@ type BarOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1451,7 +1455,7 @@ type BarOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1523,7 +1527,7 @@ type BarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1535,7 +1539,7 @@ type BarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1547,7 +1551,7 @@ type BarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/barpolar_gen.go b/generated/v2.19.0/graph_objects/barpolar_gen.go index 5f51ce5..781ef8a 100644 --- a/generated/v2.19.0/graph_objects/barpolar_gen.go +++ b/generated/v2.19.0/graph_objects/barpolar_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeBarpolar TraceType = "barpolar" func (trace *Barpolar) GetType() TraceType { @@ -19,7 +23,7 @@ type Barpolar struct { // arrayOK: true // type: any // Sets where the bar base is drawn (in radial axis units). In *stack* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead. - Base ArrayOK[*interface{}] `json:"base,omitempty"` + Base arrayok.Type[*interface{}] `json:"base,omitempty"` // Basesrc // arrayOK: false @@ -56,7 +60,7 @@ type Barpolar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*BarpolarHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*BarpolarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -73,7 +77,7 @@ type Barpolar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -85,7 +89,7 @@ type Barpolar struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -137,7 +141,7 @@ type Barpolar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -155,7 +159,7 @@ type Barpolar struct { // arrayOK: true // type: number // Shifts the angular position where the bar is drawn (in *thetatunit* units). - Offset ArrayOK[*float64] `json:"offset,omitempty"` + Offset arrayok.Type[*float64] `json:"offset,omitempty"` // Offsetsrc // arrayOK: false @@ -219,7 +223,7 @@ type Barpolar struct { // arrayOK: true // type: string // Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -286,7 +290,7 @@ type Barpolar struct { // arrayOK: true // type: number // Sets the bar angular width (in *thetaunit* units). - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -302,7 +306,7 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -314,7 +318,7 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -326,7 +330,7 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -343,7 +347,7 @@ type BarpolarHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*BarpolarHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*BarpolarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -355,7 +359,7 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -367,7 +371,7 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -384,7 +388,7 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -824,7 +828,7 @@ type BarpolarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -854,7 +858,7 @@ type BarpolarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -870,7 +874,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -882,7 +886,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -908,7 +912,7 @@ type BarpolarMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*BarpolarMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*BarpolarMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -920,7 +924,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -932,7 +936,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -978,7 +982,7 @@ type BarpolarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1012,7 +1016,7 @@ type BarpolarMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/box_gen.go b/generated/v2.19.0/graph_objects/box_gen.go index 2fb7be0..4de9878 100644 --- a/generated/v2.19.0/graph_objects/box_gen.go +++ b/generated/v2.19.0/graph_objects/box_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeBox TraceType = "box" func (trace *Box) GetType() TraceType { @@ -70,7 +74,7 @@ type Box struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*BoxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*BoxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -94,7 +98,7 @@ type Box struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -106,7 +110,7 @@ type Box struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -205,7 +209,7 @@ type Box struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -337,7 +341,7 @@ type Box struct { // arrayOK: true // type: string // Sets the text elements associated with each sample value. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -519,7 +523,7 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -531,7 +535,7 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -543,7 +547,7 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -560,7 +564,7 @@ type BoxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*BoxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*BoxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -572,7 +576,7 @@ type BoxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -584,7 +588,7 @@ type BoxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -601,7 +605,7 @@ type BoxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/candlestick_gen.go b/generated/v2.19.0/graph_objects/candlestick_gen.go index 41a65f6..467c877 100644 --- a/generated/v2.19.0/graph_objects/candlestick_gen.go +++ b/generated/v2.19.0/graph_objects/candlestick_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeCandlestick TraceType = "candlestick" func (trace *Candlestick) GetType() TraceType { @@ -61,7 +65,7 @@ type Candlestick struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*CandlestickHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*CandlestickHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -78,7 +82,7 @@ type Candlestick struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -147,7 +151,7 @@ type Candlestick struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -200,7 +204,7 @@ type Candlestick struct { // arrayOK: true // type: string // Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace's sample points. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -340,7 +344,7 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -352,7 +356,7 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -364,7 +368,7 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -381,7 +385,7 @@ type CandlestickHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*CandlestickHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*CandlestickHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -393,7 +397,7 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -405,7 +409,7 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -422,7 +426,7 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/carpet_gen.go b/generated/v2.19.0/graph_objects/carpet_gen.go index 5c3f5a4..7460219 100644 --- a/generated/v2.19.0/graph_objects/carpet_gen.go +++ b/generated/v2.19.0/graph_objects/carpet_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeCarpet TraceType = "carpet" func (trace *Carpet) GetType() TraceType { @@ -141,7 +145,7 @@ type Carpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/choropleth_gen.go b/generated/v2.19.0/graph_objects/choropleth_gen.go index f6b15d5..5d2810c 100644 --- a/generated/v2.19.0/graph_objects/choropleth_gen.go +++ b/generated/v2.19.0/graph_objects/choropleth_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeChoropleth TraceType = "choropleth" func (trace *Choropleth) GetType() TraceType { @@ -73,7 +77,7 @@ type Choropleth struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ChoroplethHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ChoroplethHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -90,7 +94,7 @@ type Choropleth struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -102,7 +106,7 @@ type Choropleth struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -173,7 +177,7 @@ type Choropleth struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -225,7 +229,7 @@ type Choropleth struct { // arrayOK: true // type: string // Sets the text elements associated with each location. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -664,7 +668,7 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -676,7 +680,7 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -688,7 +692,7 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -705,7 +709,7 @@ type ChoroplethHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ChoroplethHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ChoroplethHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -717,7 +721,7 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -729,7 +733,7 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -746,7 +750,7 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -799,7 +803,7 @@ type ChoroplethMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -811,7 +815,7 @@ type ChoroplethMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -832,7 +836,7 @@ type ChoroplethMarker struct { // arrayOK: true // type: number // Sets the opacity of the locations. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go b/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go index b835c13..677c9b2 100644 --- a/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go +++ b/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeChoroplethmapbox TraceType = "choroplethmapbox" func (trace *Choroplethmapbox) GetType() TraceType { @@ -73,7 +77,7 @@ type Choroplethmapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ChoroplethmapboxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ChoroplethmapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -90,7 +94,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variable `properties` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -102,7 +106,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -166,7 +170,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -224,7 +228,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Sets the text elements associated with each location. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -663,7 +667,7 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -675,7 +679,7 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -687,7 +691,7 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -704,7 +708,7 @@ type ChoroplethmapboxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ChoroplethmapboxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ChoroplethmapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -716,7 +720,7 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -728,7 +732,7 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -745,7 +749,7 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -798,7 +802,7 @@ type ChoroplethmapboxMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -810,7 +814,7 @@ type ChoroplethmapboxMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -831,7 +835,7 @@ type ChoroplethmapboxMarker struct { // arrayOK: true // type: number // Sets the opacity of the locations. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/cone_gen.go b/generated/v2.19.0/graph_objects/cone_gen.go index 260e508..8799232 100644 --- a/generated/v2.19.0/graph_objects/cone_gen.go +++ b/generated/v2.19.0/graph_objects/cone_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeCone TraceType = "cone" func (trace *Cone) GetType() TraceType { @@ -86,7 +90,7 @@ type Cone struct { // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ConeHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ConeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -103,7 +107,7 @@ type Cone struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variable `norm` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -115,7 +119,7 @@ type Cone struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -172,7 +176,7 @@ type Cone struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -238,7 +242,7 @@ type Cone struct { // arrayOK: true // type: string // Sets the text elements associated with the cones. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -738,7 +742,7 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -750,7 +754,7 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -762,7 +766,7 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -779,7 +783,7 @@ type ConeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ConeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ConeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -791,7 +795,7 @@ type ConeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -803,7 +807,7 @@ type ConeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -820,7 +824,7 @@ type ConeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/contour_gen.go b/generated/v2.19.0/graph_objects/contour_gen.go index 724ca1d..21433c9 100644 --- a/generated/v2.19.0/graph_objects/contour_gen.go +++ b/generated/v2.19.0/graph_objects/contour_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeContour TraceType = "contour" func (trace *Contour) GetType() TraceType { @@ -90,7 +94,7 @@ type Contour struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ContourHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ContourHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -113,7 +117,7 @@ type Contour struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -177,7 +181,7 @@ type Contour struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -907,7 +911,7 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -919,7 +923,7 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -931,7 +935,7 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -948,7 +952,7 @@ type ContourHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ContourHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ContourHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -960,7 +964,7 @@ type ContourHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -972,7 +976,7 @@ type ContourHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -989,7 +993,7 @@ type ContourHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/contourcarpet_gen.go b/generated/v2.19.0/graph_objects/contourcarpet_gen.go index bf59314..1b9b8fd 100644 --- a/generated/v2.19.0/graph_objects/contourcarpet_gen.go +++ b/generated/v2.19.0/graph_objects/contourcarpet_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeContourcarpet TraceType = "contourcarpet" func (trace *Contourcarpet) GetType() TraceType { @@ -191,7 +195,7 @@ type Contourcarpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/densitymapbox_gen.go b/generated/v2.19.0/graph_objects/densitymapbox_gen.go index a2200af..f7e77cc 100644 --- a/generated/v2.19.0/graph_objects/densitymapbox_gen.go +++ b/generated/v2.19.0/graph_objects/densitymapbox_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeDensitymapbox TraceType = "densitymapbox" func (trace *Densitymapbox) GetType() TraceType { @@ -61,7 +65,7 @@ type Densitymapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*DensitymapboxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*DensitymapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -78,7 +82,7 @@ type Densitymapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -90,7 +94,7 @@ type Densitymapbox struct { // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -161,7 +165,7 @@ type Densitymapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -185,7 +189,7 @@ type Densitymapbox struct { // arrayOK: true // type: number // Sets the radius of influence of one `lon` / `lat` point in pixels. Increasing the value makes the densitymapbox trace smoother, but less detailed. - Radius ArrayOK[*float64] `json:"radius,omitempty"` + Radius arrayok.Type[*float64] `json:"radius,omitempty"` // Radiussrc // arrayOK: false @@ -226,7 +230,7 @@ type Densitymapbox struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -660,7 +664,7 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -672,7 +676,7 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -684,7 +688,7 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -701,7 +705,7 @@ type DensitymapboxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*DensitymapboxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*DensitymapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -713,7 +717,7 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -725,7 +729,7 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -742,7 +746,7 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/funnel_gen.go b/generated/v2.19.0/graph_objects/funnel_gen.go index cee492b..db61f85 100644 --- a/generated/v2.19.0/graph_objects/funnel_gen.go +++ b/generated/v2.19.0/graph_objects/funnel_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeFunnel TraceType = "funnel" func (trace *Funnel) GetType() TraceType { @@ -68,7 +72,7 @@ type Funnel struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*FunnelHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*FunnelHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -85,7 +89,7 @@ type Funnel struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `percentInitial`, `percentPrevious` and `percentTotal`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -97,7 +101,7 @@ type Funnel struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -161,7 +165,7 @@ type Funnel struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -226,7 +230,7 @@ type Funnel struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -251,7 +255,7 @@ type Funnel struct { // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition ArrayOK[*FunnelTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*FunnelTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -269,7 +273,7 @@ type Funnel struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `percentInitial`, `percentPrevious`, `percentTotal`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -457,7 +461,7 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -469,7 +473,7 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -481,7 +485,7 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -498,7 +502,7 @@ type FunnelHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*FunnelHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*FunnelHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -510,7 +514,7 @@ type FunnelHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -522,7 +526,7 @@ type FunnelHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -539,7 +543,7 @@ type FunnelHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -555,7 +559,7 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -567,7 +571,7 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -579,7 +583,7 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1019,7 +1023,7 @@ type FunnelMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1049,7 +1053,7 @@ type FunnelMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1095,7 +1099,7 @@ type FunnelMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1129,7 +1133,7 @@ type FunnelMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1157,7 +1161,7 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1169,7 +1173,7 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1181,7 +1185,7 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1213,7 +1217,7 @@ type FunnelTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1225,7 +1229,7 @@ type FunnelTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1237,7 +1241,7 @@ type FunnelTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/funnelarea_gen.go b/generated/v2.19.0/graph_objects/funnelarea_gen.go index 3618adc..894cbe1 100644 --- a/generated/v2.19.0/graph_objects/funnelarea_gen.go +++ b/generated/v2.19.0/graph_objects/funnelarea_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeFunnelarea TraceType = "funnelarea" func (trace *Funnelarea) GetType() TraceType { @@ -55,7 +59,7 @@ type Funnelarea struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*FunnelareaHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*FunnelareaHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -72,7 +76,7 @@ type Funnelarea struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `label`, `color`, `value`, `text` and `percent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -84,7 +88,7 @@ type Funnelarea struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -159,7 +163,7 @@ type Funnelarea struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -219,7 +223,7 @@ type Funnelarea struct { // default: inside // type: enumerated // Specifies the location of the `textinfo`. - Textposition ArrayOK[*FunnelareaTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*FunnelareaTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -237,7 +241,7 @@ type Funnelarea struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `label`, `color`, `value`, `text` and `percent`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -323,7 +327,7 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -335,7 +339,7 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -347,7 +351,7 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -364,7 +368,7 @@ type FunnelareaHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*FunnelareaHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*FunnelareaHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -376,7 +380,7 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -388,7 +392,7 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -405,7 +409,7 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -421,7 +425,7 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -433,7 +437,7 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -445,7 +449,7 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -498,7 +502,7 @@ type FunnelareaMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -510,7 +514,7 @@ type FunnelareaMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -563,7 +567,7 @@ type FunnelareaTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -575,7 +579,7 @@ type FunnelareaTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -587,7 +591,7 @@ type FunnelareaTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -603,7 +607,7 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -615,7 +619,7 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -627,7 +631,7 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/heatmap_gen.go b/generated/v2.19.0/graph_objects/heatmap_gen.go index 67f2f5a..adb6904 100644 --- a/generated/v2.19.0/graph_objects/heatmap_gen.go +++ b/generated/v2.19.0/graph_objects/heatmap_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHeatmap TraceType = "heatmap" func (trace *Heatmap) GetType() TraceType { @@ -73,7 +77,7 @@ type Heatmap struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*HeatmapHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*HeatmapHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -96,7 +100,7 @@ type Heatmap struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -155,7 +159,7 @@ type Heatmap struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -804,7 +808,7 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -816,7 +820,7 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -828,7 +832,7 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -845,7 +849,7 @@ type HeatmapHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*HeatmapHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*HeatmapHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -857,7 +861,7 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -869,7 +873,7 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -886,7 +890,7 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/heatmapgl_gen.go b/generated/v2.19.0/graph_objects/heatmapgl_gen.go index 4e98a62..337c752 100644 --- a/generated/v2.19.0/graph_objects/heatmapgl_gen.go +++ b/generated/v2.19.0/graph_objects/heatmapgl_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHeatmapgl TraceType = "heatmapgl" func (trace *Heatmapgl) GetType() TraceType { @@ -67,7 +71,7 @@ type Heatmapgl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*HeatmapglHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*HeatmapglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -113,7 +117,7 @@ type Heatmapgl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -663,7 +667,7 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -675,7 +679,7 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -687,7 +691,7 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -704,7 +708,7 @@ type HeatmapglHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*HeatmapglHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*HeatmapglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -716,7 +720,7 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -728,7 +732,7 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -745,7 +749,7 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/histogram2d_gen.go b/generated/v2.19.0/graph_objects/histogram2d_gen.go index 70a7e89..e7295b2 100644 --- a/generated/v2.19.0/graph_objects/histogram2d_gen.go +++ b/generated/v2.19.0/graph_objects/histogram2d_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHistogram2d TraceType = "histogram2d" func (trace *Histogram2d) GetType() TraceType { @@ -87,7 +91,7 @@ type Histogram2d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Histogram2dHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Histogram2dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -104,7 +108,7 @@ type Histogram2d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variable `z` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -156,7 +160,7 @@ type Histogram2d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -757,7 +761,7 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -769,7 +773,7 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -781,7 +785,7 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -798,7 +802,7 @@ type Histogram2dHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Histogram2dHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Histogram2dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -810,7 +814,7 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -822,7 +826,7 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -839,7 +843,7 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go b/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go index 4dc1d98..8360966 100644 --- a/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go +++ b/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHistogram2dcontour TraceType = "histogram2dcontour" func (trace *Histogram2dcontour) GetType() TraceType { @@ -98,7 +102,7 @@ type Histogram2dcontour struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Histogram2dcontourHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Histogram2dcontourHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -115,7 +119,7 @@ type Histogram2dcontour struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variable `z` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -172,7 +176,7 @@ type Histogram2dcontour struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -854,7 +858,7 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -866,7 +870,7 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -878,7 +882,7 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -895,7 +899,7 @@ type Histogram2dcontourHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Histogram2dcontourHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Histogram2dcontourHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -907,7 +911,7 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -919,7 +923,7 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -936,7 +940,7 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/histogram_gen.go b/generated/v2.19.0/graph_objects/histogram_gen.go index dd0fbb9..cfdf689 100644 --- a/generated/v2.19.0/graph_objects/histogram_gen.go +++ b/generated/v2.19.0/graph_objects/histogram_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHistogram TraceType = "histogram" func (trace *Histogram) GetType() TraceType { @@ -98,7 +102,7 @@ type Histogram struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*HistogramHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*HistogramHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -115,7 +119,7 @@ type Histogram struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variable `binNumber` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -127,7 +131,7 @@ type Histogram struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -191,7 +195,7 @@ type Histogram struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -267,7 +271,7 @@ type Histogram struct { // arrayOK: true // type: string // Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -617,7 +621,7 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -629,7 +633,7 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -641,7 +645,7 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -658,7 +662,7 @@ type HistogramHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*HistogramHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*HistogramHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -670,7 +674,7 @@ type HistogramHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -682,7 +686,7 @@ type HistogramHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -699,7 +703,7 @@ type HistogramHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -1161,7 +1165,7 @@ type HistogramMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1191,7 +1195,7 @@ type HistogramMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1207,7 +1211,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -1219,7 +1223,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -1245,7 +1249,7 @@ type HistogramMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*HistogramMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*HistogramMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -1257,7 +1261,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1269,7 +1273,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1315,7 +1319,7 @@ type HistogramMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1349,7 +1353,7 @@ type HistogramMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/icicle_gen.go b/generated/v2.19.0/graph_objects/icicle_gen.go index c10e79d..8c132e4 100644 --- a/generated/v2.19.0/graph_objects/icicle_gen.go +++ b/generated/v2.19.0/graph_objects/icicle_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeIcicle TraceType = "icicle" func (trace *Icicle) GetType() TraceType { @@ -51,7 +55,7 @@ type Icicle struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*IcicleHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*IcicleHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Icicle struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -80,7 +84,7 @@ type Icicle struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -160,7 +164,7 @@ type Icicle struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -253,7 +257,7 @@ type Icicle struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -339,7 +343,7 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -351,7 +355,7 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -363,7 +367,7 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -380,7 +384,7 @@ type IcicleHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*IcicleHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*IcicleHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -392,7 +396,7 @@ type IcicleHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -404,7 +408,7 @@ type IcicleHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -421,7 +425,7 @@ type IcicleHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -437,7 +441,7 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -449,7 +453,7 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -461,7 +465,7 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -881,7 +885,7 @@ type IcicleMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -893,7 +897,7 @@ type IcicleMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -989,7 +993,7 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1001,7 +1005,7 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1013,7 +1017,7 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1029,7 +1033,7 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1041,7 +1045,7 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1053,7 +1057,7 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1130,7 +1134,7 @@ type IcicleTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1142,7 +1146,7 @@ type IcicleTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1154,7 +1158,7 @@ type IcicleTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/image_gen.go b/generated/v2.19.0/graph_objects/image_gen.go index 3ee3eb1..06d0842 100644 --- a/generated/v2.19.0/graph_objects/image_gen.go +++ b/generated/v2.19.0/graph_objects/image_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeImage TraceType = "image" func (trace *Image) GetType() TraceType { @@ -51,7 +55,7 @@ type Image struct { // default: x+y+z+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ImageHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ImageHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Image struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `z`, `color` and `colormodel`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -121,7 +125,7 @@ type Image struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -246,7 +250,7 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -258,7 +262,7 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -270,7 +274,7 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -287,7 +291,7 @@ type ImageHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ImageHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ImageHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -299,7 +303,7 @@ type ImageHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -311,7 +315,7 @@ type ImageHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -328,7 +332,7 @@ type ImageHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/indicator_gen.go b/generated/v2.19.0/graph_objects/indicator_gen.go index 35175d8..23d9585 100644 --- a/generated/v2.19.0/graph_objects/indicator_gen.go +++ b/generated/v2.19.0/graph_objects/indicator_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeIndicator TraceType = "indicator" func (trace *Indicator) GetType() TraceType { @@ -82,7 +86,7 @@ type Indicator struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/isosurface_gen.go b/generated/v2.19.0/graph_objects/isosurface_gen.go index ac8c08f..02346ab 100644 --- a/generated/v2.19.0/graph_objects/isosurface_gen.go +++ b/generated/v2.19.0/graph_objects/isosurface_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeIsosurface TraceType = "isosurface" func (trace *Isosurface) GetType() TraceType { @@ -95,7 +99,7 @@ type Isosurface struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*IsosurfaceHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*IsosurfaceHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -112,7 +116,7 @@ type Isosurface struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -124,7 +128,7 @@ type Isosurface struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -193,7 +197,7 @@ type Isosurface struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -261,7 +265,7 @@ type Isosurface struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -814,7 +818,7 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -826,7 +830,7 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -838,7 +842,7 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -855,7 +859,7 @@ type IsosurfaceHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*IsosurfaceHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*IsosurfaceHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -867,7 +871,7 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -879,7 +883,7 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -896,7 +900,7 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/layout_gen.go b/generated/v2.19.0/graph_objects/layout_gen.go index 8ef5a01..3b23164 100644 --- a/generated/v2.19.0/graph_objects/layout_gen.go +++ b/generated/v2.19.0/graph_objects/layout_gen.go @@ -1,6 +1,12 @@ package grob -// Code generated by go-plotly/generator. DO NOT EDIT.// Layout Plot layout options +// Code generated by go-plotly/generator. DO NOT EDIT. + +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + +// Layout Plot layout options type Layout struct { // Activeselection @@ -275,7 +281,7 @@ type Layout struct { // arrayOK: true // type: any // Assigns extra meta information that can be used in various `text` attributes. Attributes such as the graph, axis and colorbar `title.text`, annotation `text` `trace.name` in legend items, `rangeselector`, `updatemenus` and `sliders` `label` text all support `meta`. One can access `meta` fields using template strings: `%{meta[i]}` where `i` is the index of the `meta` item in question. `meta` can also be an object for example `{key: value}` which can be accessed %{meta[key]}. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -2027,7 +2033,7 @@ type LayoutModebar struct { // arrayOK: true // type: string // Determines which predefined modebar buttons to add. Please note that these buttons will only be shown if they are compatible with all trace types used in a graph. Similar to `config.modeBarButtonsToAdd` option. This may include *v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*, *drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect*, *eraseshape*. - Add ArrayOK[*string] `json:"add,omitempty"` + Add arrayok.Type[*string] `json:"add,omitempty"` // Addsrc // arrayOK: false @@ -2058,7 +2064,7 @@ type LayoutModebar struct { // arrayOK: true // type: string // Determines which predefined modebar buttons to remove. Similar to `config.modeBarButtonsToRemove` option. This may include *autoScale2d*, *autoscale*, *editInChartStudio*, *editinchartstudio*, *hoverCompareCartesian*, *hovercompare*, *lasso*, *lasso2d*, *orbitRotation*, *orbitrotation*, *pan*, *pan2d*, *pan3d*, *reset*, *resetCameraDefault3d*, *resetCameraLastSave3d*, *resetGeo*, *resetSankeyGroup*, *resetScale2d*, *resetViewMapbox*, *resetViews*, *resetcameradefault*, *resetcameralastsave*, *resetsankeygroup*, *resetscale*, *resetview*, *resetviews*, *select*, *select2d*, *sendDataToCloud*, *senddatatocloud*, *tableRotation*, *tablerotation*, *toImage*, *toggleHover*, *toggleSpikelines*, *togglehover*, *togglespikelines*, *toimage*, *zoom*, *zoom2d*, *zoom3d*, *zoomIn2d*, *zoomInGeo*, *zoomInMapbox*, *zoomOut2d*, *zoomOutGeo*, *zoomOutMapbox*, *zoomin*, *zoomout*. - Remove ArrayOK[*string] `json:"remove,omitempty"` + Remove arrayok.Type[*string] `json:"remove,omitempty"` // Removesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/mesh3d_gen.go b/generated/v2.19.0/graph_objects/mesh3d_gen.go index 7d5ecb1..f8dd96f 100644 --- a/generated/v2.19.0/graph_objects/mesh3d_gen.go +++ b/generated/v2.19.0/graph_objects/mesh3d_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeMesh3d TraceType = "mesh3d" func (trace *Mesh3d) GetType() TraceType { @@ -121,7 +125,7 @@ type Mesh3d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Mesh3dHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Mesh3dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -138,7 +142,7 @@ type Mesh3d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -150,7 +154,7 @@ type Mesh3d struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -262,7 +266,7 @@ type Mesh3d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -315,7 +319,7 @@ type Mesh3d struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -816,7 +820,7 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -828,7 +832,7 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -840,7 +844,7 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -857,7 +861,7 @@ type Mesh3dHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Mesh3dHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Mesh3dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -869,7 +873,7 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -881,7 +885,7 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -898,7 +902,7 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/ohlc_gen.go b/generated/v2.19.0/graph_objects/ohlc_gen.go index 9dfa8ad..5676fbe 100644 --- a/generated/v2.19.0/graph_objects/ohlc_gen.go +++ b/generated/v2.19.0/graph_objects/ohlc_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeOhlc TraceType = "ohlc" func (trace *Ohlc) GetType() TraceType { @@ -61,7 +65,7 @@ type Ohlc struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*OhlcHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*OhlcHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -78,7 +82,7 @@ type Ohlc struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -147,7 +151,7 @@ type Ohlc struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -200,7 +204,7 @@ type Ohlc struct { // arrayOK: true // type: string // Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace's sample points. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -340,7 +344,7 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -352,7 +356,7 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -364,7 +368,7 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -381,7 +385,7 @@ type OhlcHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*OhlcHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*OhlcHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -393,7 +397,7 @@ type OhlcHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -405,7 +409,7 @@ type OhlcHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -422,7 +426,7 @@ type OhlcHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/parcats_gen.go b/generated/v2.19.0/graph_objects/parcats_gen.go index cd7d6e6..10e34e8 100644 --- a/generated/v2.19.0/graph_objects/parcats_gen.go +++ b/generated/v2.19.0/graph_objects/parcats_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeParcats TraceType = "parcats" func (trace *Parcats) GetType() TraceType { @@ -32,7 +36,7 @@ type Parcats struct { // arrayOK: true // type: number // The number of observations represented by each state. Defaults to 1 so that each state represents one observation - Counts ArrayOK[*float64] `json:"counts,omitempty"` + Counts arrayok.Type[*float64] `json:"counts,omitempty"` // Countssrc // arrayOK: false @@ -96,7 +100,7 @@ type Parcats struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -634,7 +638,7 @@ type ParcatsLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/parcoords_gen.go b/generated/v2.19.0/graph_objects/parcoords_gen.go index 0f89350..900c776 100644 --- a/generated/v2.19.0/graph_objects/parcoords_gen.go +++ b/generated/v2.19.0/graph_objects/parcoords_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeParcoords TraceType = "parcoords" func (trace *Parcoords) GetType() TraceType { @@ -94,7 +98,7 @@ type Parcoords struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -635,7 +639,7 @@ type ParcoordsLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/pie_gen.go b/generated/v2.19.0/graph_objects/pie_gen.go index 02a4ddf..76fe286 100644 --- a/generated/v2.19.0/graph_objects/pie_gen.go +++ b/generated/v2.19.0/graph_objects/pie_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypePie TraceType = "pie" func (trace *Pie) GetType() TraceType { @@ -62,7 +66,7 @@ type Pie struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*PieHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*PieHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -79,7 +83,7 @@ type Pie struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `label`, `color`, `value`, `percent` and `text`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -91,7 +95,7 @@ type Pie struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -173,7 +177,7 @@ type Pie struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -202,7 +206,7 @@ type Pie struct { // arrayOK: true // type: number // Sets the fraction of larger radius to pull the sectors out from the center. This can be a constant to pull all slices apart from each other equally or an array to highlight one or more slices. - Pull ArrayOK[*float64] `json:"pull,omitempty"` + Pull arrayok.Type[*float64] `json:"pull,omitempty"` // Pullsrc // arrayOK: false @@ -262,7 +266,7 @@ type Pie struct { // default: auto // type: enumerated // Specifies the location of the `textinfo`. - Textposition ArrayOK[*PieTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*PieTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -280,7 +284,7 @@ type Pie struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `label`, `color`, `value`, `percent` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -366,7 +370,7 @@ type PieHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -378,7 +382,7 @@ type PieHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -390,7 +394,7 @@ type PieHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -407,7 +411,7 @@ type PieHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*PieHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*PieHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -419,7 +423,7 @@ type PieHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -431,7 +435,7 @@ type PieHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -448,7 +452,7 @@ type PieHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -464,7 +468,7 @@ type PieInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -476,7 +480,7 @@ type PieInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -488,7 +492,7 @@ type PieInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -541,7 +545,7 @@ type PieMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -553,7 +557,7 @@ type PieMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -590,7 +594,7 @@ type PieOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -602,7 +606,7 @@ type PieOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -614,7 +618,7 @@ type PieOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -646,7 +650,7 @@ type PieTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -658,7 +662,7 @@ type PieTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -670,7 +674,7 @@ type PieTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -686,7 +690,7 @@ type PieTitleFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -698,7 +702,7 @@ type PieTitleFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -710,7 +714,7 @@ type PieTitleFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/plotly_gen.go b/generated/v2.19.0/graph_objects/plotly_gen.go index f1b563d..692f355 100644 --- a/generated/v2.19.0/graph_objects/plotly_gen.go +++ b/generated/v2.19.0/graph_objects/plotly_gen.go @@ -153,52 +153,3 @@ type ColorList []Color // ColorScale A Plotly colorscale either picked by a name: (any of Greys, YlGnBu, Greens, YlOrRd, Bluered, RdBu, Reds, Blues, Picnic, Rainbow, Portland, Jet, Hot, Blackbody, Earth, Electric, Viridis, Cividis ) customized as an {array} of 2-element {arrays} where the first element is the normalized color level value (starting at *0* and ending at *1*), and the second item is a valid color string. type ColorScale interface{} - -func ArrayOKValue[T any](value T) ArrayOK[*T] { - v := &value - return ArrayOK[*T]{Value: v} -} - -func ArrayOKArray[T any](array ...T) ArrayOK[*T] { - out := make([]*T, len(array)) - for i, v := range array { - value := v - out[i] = &value - } - return ArrayOK[*T]{ - Array: out, - } -} - -// ArrayOK is a type that allows you to define a single value or an array of values, But not both. -// If Array is defined, Value will be ignored. -type ArrayOK[T any] struct { - Value T - Array []T -} - -func (arrayOK *ArrayOK[T]) MarshalJSON() ([]byte, error) { - if arrayOK.Array != nil { - return json.Marshal(arrayOK.Array) - } - return json.Marshal(arrayOK.Value) -} - -func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error { - arrayOK.Array = nil - - var array []T - err := json.Unmarshal(data, &array) - if err == nil { - arrayOK.Array = array - return nil - } - - var value T - err = json.Unmarshal(data, &value) - if err != nil { - return err - } - arrayOK.Value = value - return nil -} diff --git a/generated/v2.19.0/graph_objects/pointcloud_gen.go b/generated/v2.19.0/graph_objects/pointcloud_gen.go index 8bbbad4..a649985 100644 --- a/generated/v2.19.0/graph_objects/pointcloud_gen.go +++ b/generated/v2.19.0/graph_objects/pointcloud_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypePointcloud TraceType = "pointcloud" func (trace *Pointcloud) GetType() TraceType { @@ -32,7 +36,7 @@ type Pointcloud struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*PointcloudHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*PointcloudHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -101,7 +105,7 @@ type Pointcloud struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -136,7 +140,7 @@ type Pointcloud struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -243,7 +247,7 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -255,7 +259,7 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -267,7 +271,7 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -284,7 +288,7 @@ type PointcloudHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*PointcloudHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*PointcloudHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -296,7 +300,7 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -308,7 +312,7 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -325,7 +329,7 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/sankey_gen.go b/generated/v2.19.0/graph_objects/sankey_gen.go index e0c4ba9..b4255c9 100644 --- a/generated/v2.19.0/graph_objects/sankey_gen.go +++ b/generated/v2.19.0/graph_objects/sankey_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSankey TraceType = "sankey" func (trace *Sankey) GetType() TraceType { @@ -89,7 +93,7 @@ type Sankey struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -198,7 +202,7 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -210,7 +214,7 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -222,7 +226,7 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -239,7 +243,7 @@ type SankeyHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SankeyHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SankeyHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -251,7 +255,7 @@ type SankeyHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -263,7 +267,7 @@ type SankeyHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -280,7 +284,7 @@ type SankeyHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -333,7 +337,7 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -345,7 +349,7 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -357,7 +361,7 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -374,7 +378,7 @@ type SankeyLinkHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SankeyLinkHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SankeyLinkHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -386,7 +390,7 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -398,7 +402,7 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -415,7 +419,7 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -431,7 +435,7 @@ type SankeyLinkLine struct { // arrayOK: true // type: color // Sets the color of the `line` around each `link`. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -443,7 +447,7 @@ type SankeyLinkLine struct { // arrayOK: true // type: number // Sets the width (in px) of the `line` around each `link`. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -465,7 +469,7 @@ type SankeyLink struct { // arrayOK: true // type: color // Sets the `link` color. It can be a single value, or an array for specifying color for each `link`. If `link.color` is omitted, then by default, a translucent grey link will be used. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorscales // It's an items array and what goes inside it's... messy... check the docs @@ -507,7 +511,7 @@ type SankeyLink struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -576,7 +580,7 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -588,7 +592,7 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -600,7 +604,7 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -617,7 +621,7 @@ type SankeyNodeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SankeyNodeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SankeyNodeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -629,7 +633,7 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -641,7 +645,7 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -658,7 +662,7 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -674,7 +678,7 @@ type SankeyNodeLine struct { // arrayOK: true // type: color // Sets the color of the `line` around each `node`. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -686,7 +690,7 @@ type SankeyNodeLine struct { // arrayOK: true // type: number // Sets the width (in px) of the `line` around each `node`. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -702,7 +706,7 @@ type SankeyNode struct { // arrayOK: true // type: color // Sets the `node` color. It can be a single value, or an array for specifying color for each `node`. If `node.color` is omitted, then the default `Plotly` color palette will be cycled through to have a variety of colors. These defaults are not fully opaque, to allow some visibility of what is beneath the node. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -744,7 +748,7 @@ type SankeyNode struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scatter3d_gen.go b/generated/v2.19.0/graph_objects/scatter3d_gen.go index fdc671d..e6ef078 100644 --- a/generated/v2.19.0/graph_objects/scatter3d_gen.go +++ b/generated/v2.19.0/graph_objects/scatter3d_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatter3d TraceType = "scatter3d" func (trace *Scatter3d) GetType() TraceType { @@ -53,7 +57,7 @@ type Scatter3d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Scatter3dHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Scatter3dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -70,7 +74,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -82,7 +86,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y,z) triplet. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y,z) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -139,7 +143,7 @@ type Scatter3d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -205,7 +209,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y,z) triplet. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y,z) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -217,7 +221,7 @@ type Scatter3d struct { // default: top center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*Scatter3dTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*Scatter3dTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -235,7 +239,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -630,7 +634,7 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -642,7 +646,7 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -654,7 +658,7 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -671,7 +675,7 @@ type Scatter3dHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Scatter3dHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Scatter3dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -683,7 +687,7 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -695,7 +699,7 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -712,7 +716,7 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -1152,7 +1156,7 @@ type Scatter3dLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1597,7 +1601,7 @@ type Scatter3dMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1667,7 +1671,7 @@ type Scatter3dMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1719,7 +1723,7 @@ type Scatter3dMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1751,7 +1755,7 @@ type Scatter3dMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. - Symbol ArrayOK[*Scatter3dMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*Scatter3dMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1868,7 +1872,7 @@ type Scatter3dTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1886,7 +1890,7 @@ type Scatter3dTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scatter_gen.go b/generated/v2.19.0/graph_objects/scatter_gen.go index f498d04..06107f4 100644 --- a/generated/v2.19.0/graph_objects/scatter_gen.go +++ b/generated/v2.19.0/graph_objects/scatter_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatter TraceType = "scatter" func (trace *Scatter) GetType() TraceType { @@ -97,7 +101,7 @@ type Scatter struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -121,7 +125,7 @@ type Scatter struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -133,7 +137,7 @@ type Scatter struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -190,7 +194,7 @@ type Scatter struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -269,7 +273,7 @@ type Scatter struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -281,7 +285,7 @@ type Scatter struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -299,7 +303,7 @@ type Scatter struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -641,7 +645,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -653,7 +657,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -679,7 +683,7 @@ type ScatterFillpattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*ScatterFillpatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*ScatterFillpatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -691,7 +695,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -703,7 +707,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -719,7 +723,7 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -731,7 +735,7 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -743,7 +747,7 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -760,7 +764,7 @@ type ScatterHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -772,7 +776,7 @@ type ScatterHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -784,7 +788,7 @@ type ScatterHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -801,7 +805,7 @@ type ScatterHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -854,7 +858,7 @@ type ScatterLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -1264,7 +1268,7 @@ type ScatterMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1277,7 +1281,7 @@ type ScatterMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScatterMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScatterMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -1323,7 +1327,7 @@ type ScatterMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1353,7 +1357,7 @@ type ScatterMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1369,7 +1373,7 @@ type ScatterMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1418,7 +1422,7 @@ type ScatterMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1463,7 +1467,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1487,7 +1491,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1518,7 +1522,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1531,7 +1535,7 @@ type ScatterMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1609,7 +1613,7 @@ type ScatterTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1621,7 +1625,7 @@ type ScatterTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1633,7 +1637,7 @@ type ScatterTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scattercarpet_gen.go b/generated/v2.19.0/graph_objects/scattercarpet_gen.go index 7c445ff..696890b 100644 --- a/generated/v2.19.0/graph_objects/scattercarpet_gen.go +++ b/generated/v2.19.0/graph_objects/scattercarpet_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattercarpet TraceType = "scattercarpet" func (trace *Scattercarpet) GetType() TraceType { @@ -81,7 +85,7 @@ type Scattercarpet struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattercarpetHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattercarpetHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -105,7 +109,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -117,7 +121,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Sets hover text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -174,7 +178,7 @@ type Scattercarpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -227,7 +231,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Sets text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -239,7 +243,7 @@ type Scattercarpet struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScattercarpetTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScattercarpetTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -257,7 +261,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `a`, `b` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -315,7 +319,7 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -327,7 +331,7 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -339,7 +343,7 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -356,7 +360,7 @@ type ScattercarpetHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattercarpetHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattercarpetHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -368,7 +372,7 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -380,7 +384,7 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -397,7 +401,7 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -450,7 +454,7 @@ type ScattercarpetLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -854,7 +858,7 @@ type ScattercarpetMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -867,7 +871,7 @@ type ScattercarpetMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScattercarpetMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScattercarpetMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -913,7 +917,7 @@ type ScattercarpetMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -943,7 +947,7 @@ type ScattercarpetMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -959,7 +963,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1008,7 +1012,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1053,7 +1057,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1077,7 +1081,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1108,7 +1112,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1121,7 +1125,7 @@ type ScattercarpetMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScattercarpetMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScattercarpetMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1199,7 +1203,7 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1211,7 +1215,7 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1223,7 +1227,7 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scattergeo_gen.go b/generated/v2.19.0/graph_objects/scattergeo_gen.go index fe5181e..67bdcf9 100644 --- a/generated/v2.19.0/graph_objects/scattergeo_gen.go +++ b/generated/v2.19.0/graph_objects/scattergeo_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattergeo TraceType = "scattergeo" func (trace *Scattergeo) GetType() TraceType { @@ -69,7 +73,7 @@ type Scattergeo struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattergeoHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattergeoHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -86,7 +90,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -98,7 +102,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair or item in `locations`. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) or `locations` coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -198,7 +202,7 @@ type Scattergeo struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -251,7 +255,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair or item in `locations`. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) or `locations` coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -263,7 +267,7 @@ type Scattergeo struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScattergeoTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScattergeoTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -281,7 +285,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `lat`, `lon`, `location` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -327,7 +331,7 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -339,7 +343,7 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -351,7 +355,7 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -368,7 +372,7 @@ type ScattergeoHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattergeoHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattergeoHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -380,7 +384,7 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -392,7 +396,7 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -409,7 +413,7 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -841,7 +845,7 @@ type ScattergeoMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -854,7 +858,7 @@ type ScattergeoMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScattergeoMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScattergeoMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -900,7 +904,7 @@ type ScattergeoMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -930,7 +934,7 @@ type ScattergeoMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -946,7 +950,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -995,7 +999,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1034,7 +1038,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1058,7 +1062,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1089,7 +1093,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1102,7 +1106,7 @@ type ScattergeoMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScattergeoMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScattergeoMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1180,7 +1184,7 @@ type ScattergeoTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1192,7 +1196,7 @@ type ScattergeoTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1204,7 +1208,7 @@ type ScattergeoTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scattergl_gen.go b/generated/v2.19.0/graph_objects/scattergl_gen.go index 183ad3c..693b9ec 100644 --- a/generated/v2.19.0/graph_objects/scattergl_gen.go +++ b/generated/v2.19.0/graph_objects/scattergl_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattergl TraceType = "scattergl" func (trace *Scattergl) GetType() TraceType { @@ -73,7 +77,7 @@ type Scattergl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterglHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -90,7 +94,7 @@ type Scattergl struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -102,7 +106,7 @@ type Scattergl struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -159,7 +163,7 @@ type Scattergl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -212,7 +216,7 @@ type Scattergl struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -224,7 +228,7 @@ type Scattergl struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterglTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterglTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -242,7 +246,7 @@ type Scattergl struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -584,7 +588,7 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -596,7 +600,7 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -608,7 +612,7 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -625,7 +629,7 @@ type ScatterglHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterglHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -637,7 +641,7 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -649,7 +653,7 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -666,7 +670,7 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -1136,7 +1140,7 @@ type ScatterglMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1166,7 +1170,7 @@ type ScatterglMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1182,7 +1186,7 @@ type ScatterglMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -1224,7 +1228,7 @@ type ScatterglMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1258,7 +1262,7 @@ type ScatterglMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1282,7 +1286,7 @@ type ScatterglMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1314,7 +1318,7 @@ type ScatterglMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterglMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterglMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1392,7 +1396,7 @@ type ScatterglTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1404,7 +1408,7 @@ type ScatterglTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1416,7 +1420,7 @@ type ScatterglTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scattermapbox_gen.go b/generated/v2.19.0/graph_objects/scattermapbox_gen.go index 3fda441..cd2f761 100644 --- a/generated/v2.19.0/graph_objects/scattermapbox_gen.go +++ b/generated/v2.19.0/graph_objects/scattermapbox_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattermapbox TraceType = "scattermapbox" func (trace *Scattermapbox) GetType() TraceType { @@ -62,7 +66,7 @@ type Scattermapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattermapboxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattermapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -79,7 +83,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -91,7 +95,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -172,7 +176,7 @@ type Scattermapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -231,7 +235,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -255,7 +259,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `lat`, `lon` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -301,7 +305,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: color // Sets the color for each cluster step. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -325,7 +329,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -337,7 +341,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets the size for each cluster step. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -349,7 +353,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets how many points it takes to create a cluster or advance to the next cluster step. Use this in conjunction with arrays for `size` and / or `color`. If an integer, steps start at multiples of this number. If an array, each step extends from the given value until one less than the next value. - Step ArrayOK[*float64] `json:"step,omitempty"` + Step arrayok.Type[*float64] `json:"step,omitempty"` // Stepsrc // arrayOK: false @@ -365,7 +369,7 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -377,7 +381,7 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -389,7 +393,7 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -406,7 +410,7 @@ type ScattermapboxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattermapboxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattermapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -418,7 +422,7 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -430,7 +434,7 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -447,7 +451,7 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -879,7 +883,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker orientation from true North, in degrees clockwise. When using the *auto* default, no rotation would be applied in perspective views which is different from using a zero angle. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -921,7 +925,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -950,7 +954,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -974,7 +978,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1005,7 +1009,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: string // Sets the marker symbol. Full list: https://www.mapbox.com/maki-icons/ Note that the array `marker.color` and `marker.size` are only available for *circle* symbols. - Symbol ArrayOK[*string] `json:"symbol,omitempty"` + Symbol arrayok.Type[*string] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scatterpolar_gen.go b/generated/v2.19.0/graph_objects/scatterpolar_gen.go index f729df6..8c2686f 100644 --- a/generated/v2.19.0/graph_objects/scatterpolar_gen.go +++ b/generated/v2.19.0/graph_objects/scatterpolar_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatterpolar TraceType = "scatterpolar" func (trace *Scatterpolar) GetType() TraceType { @@ -69,7 +73,7 @@ type Scatterpolar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterpolarHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterpolarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -93,7 +97,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -105,7 +109,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -162,7 +166,7 @@ type Scatterpolar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -239,7 +243,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -251,7 +255,7 @@ type Scatterpolar struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterpolarTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterpolarTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -269,7 +273,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `r`, `theta` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -340,7 +344,7 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -352,7 +356,7 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -364,7 +368,7 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -381,7 +385,7 @@ type ScatterpolarHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterpolarHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterpolarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -393,7 +397,7 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -405,7 +409,7 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -422,7 +426,7 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -475,7 +479,7 @@ type ScatterpolarLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -879,7 +883,7 @@ type ScatterpolarMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -892,7 +896,7 @@ type ScatterpolarMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScatterpolarMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScatterpolarMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -938,7 +942,7 @@ type ScatterpolarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -968,7 +972,7 @@ type ScatterpolarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -984,7 +988,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1033,7 +1037,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1078,7 +1082,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1102,7 +1106,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1133,7 +1137,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1146,7 +1150,7 @@ type ScatterpolarMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterpolarMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterpolarMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1224,7 +1228,7 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1236,7 +1240,7 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1248,7 +1252,7 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scatterpolargl_gen.go b/generated/v2.19.0/graph_objects/scatterpolargl_gen.go index 33831fa..136a345 100644 --- a/generated/v2.19.0/graph_objects/scatterpolargl_gen.go +++ b/generated/v2.19.0/graph_objects/scatterpolargl_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatterpolargl TraceType = "scatterpolargl" func (trace *Scatterpolargl) GetType() TraceType { @@ -63,7 +67,7 @@ type Scatterpolargl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterpolarglHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterpolarglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -80,7 +84,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -92,7 +96,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -149,7 +153,7 @@ type Scatterpolargl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -226,7 +230,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -238,7 +242,7 @@ type Scatterpolargl struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterpolarglTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterpolarglTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -256,7 +260,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `r`, `theta` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -327,7 +331,7 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -339,7 +343,7 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -351,7 +355,7 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -368,7 +372,7 @@ type ScatterpolarglHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterpolarglHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterpolarglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -380,7 +384,7 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -392,7 +396,7 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -409,7 +413,7 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -879,7 +883,7 @@ type ScatterpolarglMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -909,7 +913,7 @@ type ScatterpolarglMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -925,7 +929,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -967,7 +971,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1001,7 +1005,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1025,7 +1029,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1057,7 +1061,7 @@ type ScatterpolarglMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterpolarglMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterpolarglMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1135,7 +1139,7 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1147,7 +1151,7 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1159,7 +1163,7 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scattersmith_gen.go b/generated/v2.19.0/graph_objects/scattersmith_gen.go index 717ac3f..eec79b0 100644 --- a/generated/v2.19.0/graph_objects/scattersmith_gen.go +++ b/generated/v2.19.0/graph_objects/scattersmith_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattersmith TraceType = "scattersmith" func (trace *Scattersmith) GetType() TraceType { @@ -57,7 +61,7 @@ type Scattersmith struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattersmithHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattersmithHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -81,7 +85,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -93,7 +97,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -162,7 +166,7 @@ type Scattersmith struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -233,7 +237,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -245,7 +249,7 @@ type Scattersmith struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScattersmithTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScattersmithTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -263,7 +267,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `real`, `imag` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -309,7 +313,7 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -321,7 +325,7 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -333,7 +337,7 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -350,7 +354,7 @@ type ScattersmithHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattersmithHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattersmithHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -362,7 +366,7 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -374,7 +378,7 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -391,7 +395,7 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -444,7 +448,7 @@ type ScattersmithLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -848,7 +852,7 @@ type ScattersmithMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -861,7 +865,7 @@ type ScattersmithMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScattersmithMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScattersmithMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -907,7 +911,7 @@ type ScattersmithMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -937,7 +941,7 @@ type ScattersmithMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -953,7 +957,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1002,7 +1006,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1047,7 +1051,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1071,7 +1075,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1102,7 +1106,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1115,7 +1119,7 @@ type ScattersmithMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScattersmithMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScattersmithMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1193,7 +1197,7 @@ type ScattersmithTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1205,7 +1209,7 @@ type ScattersmithTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1217,7 +1221,7 @@ type ScattersmithTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scatterternary_gen.go b/generated/v2.19.0/graph_objects/scatterternary_gen.go index 5ae44da..fcf0a98 100644 --- a/generated/v2.19.0/graph_objects/scatterternary_gen.go +++ b/generated/v2.19.0/graph_objects/scatterternary_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatterternary TraceType = "scatterternary" func (trace *Scatterternary) GetType() TraceType { @@ -93,7 +97,7 @@ type Scatterternary struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterternaryHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterternaryHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -117,7 +121,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -129,7 +133,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Sets hover text elements associated with each (a,b,c) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b,c). To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -186,7 +190,7 @@ type Scatterternary struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -251,7 +255,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Sets text elements associated with each (a,b,c) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b,c). If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -263,7 +267,7 @@ type Scatterternary struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterternaryTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterternaryTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -281,7 +285,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `a`, `b`, `c` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -327,7 +331,7 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -339,7 +343,7 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -351,7 +355,7 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -368,7 +372,7 @@ type ScatterternaryHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterternaryHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterternaryHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -380,7 +384,7 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -392,7 +396,7 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -409,7 +413,7 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -462,7 +466,7 @@ type ScatterternaryLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -866,7 +870,7 @@ type ScatterternaryMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -879,7 +883,7 @@ type ScatterternaryMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScatterternaryMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScatterternaryMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -925,7 +929,7 @@ type ScatterternaryMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -955,7 +959,7 @@ type ScatterternaryMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -971,7 +975,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1020,7 +1024,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1065,7 +1069,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1089,7 +1093,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1120,7 +1124,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1133,7 +1137,7 @@ type ScatterternaryMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterternaryMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterternaryMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1211,7 +1215,7 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1223,7 +1227,7 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1235,7 +1239,7 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/splom_gen.go b/generated/v2.19.0/graph_objects/splom_gen.go index c5e0ab9..399b998 100644 --- a/generated/v2.19.0/graph_objects/splom_gen.go +++ b/generated/v2.19.0/graph_objects/splom_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSplom TraceType = "splom" func (trace *Splom) GetType() TraceType { @@ -43,7 +47,7 @@ type Splom struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*SplomHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*SplomHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -60,7 +64,7 @@ type Splom struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -72,7 +76,7 @@ type Splom struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -124,7 +128,7 @@ type Splom struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -182,7 +186,7 @@ type Splom struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair to appear on hover. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -262,7 +266,7 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -274,7 +278,7 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -286,7 +290,7 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -303,7 +307,7 @@ type SplomHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SplomHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SplomHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -315,7 +319,7 @@ type SplomHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -327,7 +331,7 @@ type SplomHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -344,7 +348,7 @@ type SplomHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -784,7 +788,7 @@ type SplomMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -814,7 +818,7 @@ type SplomMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -830,7 +834,7 @@ type SplomMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -872,7 +876,7 @@ type SplomMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -906,7 +910,7 @@ type SplomMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -930,7 +934,7 @@ type SplomMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -962,7 +966,7 @@ type SplomMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*SplomMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*SplomMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/streamtube_gen.go b/generated/v2.19.0/graph_objects/streamtube_gen.go index 4194a92..2c2b80a 100644 --- a/generated/v2.19.0/graph_objects/streamtube_gen.go +++ b/generated/v2.19.0/graph_objects/streamtube_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeStreamtube TraceType = "streamtube" func (trace *Streamtube) GetType() TraceType { @@ -79,7 +83,7 @@ type Streamtube struct { // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*StreamtubeHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*StreamtubeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -96,7 +100,7 @@ type Streamtube struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `tubex`, `tubey`, `tubez`, `tubeu`, `tubev`, `tubew`, `norm` and `divergence`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -165,7 +169,7 @@ type Streamtube struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -723,7 +727,7 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -735,7 +739,7 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -747,7 +751,7 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -764,7 +768,7 @@ type StreamtubeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*StreamtubeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*StreamtubeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -776,7 +780,7 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -788,7 +792,7 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -805,7 +809,7 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/sunburst_gen.go b/generated/v2.19.0/graph_objects/sunburst_gen.go index b396890..9c8fd1c 100644 --- a/generated/v2.19.0/graph_objects/sunburst_gen.go +++ b/generated/v2.19.0/graph_objects/sunburst_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSunburst TraceType = "sunburst" func (trace *Sunburst) GetType() TraceType { @@ -51,7 +55,7 @@ type Sunburst struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*SunburstHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*SunburstHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Sunburst struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -80,7 +84,7 @@ type Sunburst struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -167,7 +171,7 @@ type Sunburst struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -254,7 +258,7 @@ type Sunburst struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -335,7 +339,7 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -347,7 +351,7 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -359,7 +363,7 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -376,7 +380,7 @@ type SunburstHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SunburstHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SunburstHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -388,7 +392,7 @@ type SunburstHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -400,7 +404,7 @@ type SunburstHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -417,7 +421,7 @@ type SunburstHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -433,7 +437,7 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -445,7 +449,7 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -457,7 +461,7 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -877,7 +881,7 @@ type SunburstMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -889,7 +893,7 @@ type SunburstMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -985,7 +989,7 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -997,7 +1001,7 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1009,7 +1013,7 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1051,7 +1055,7 @@ type SunburstTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1063,7 +1067,7 @@ type SunburstTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1075,7 +1079,7 @@ type SunburstTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/surface_gen.go b/generated/v2.19.0/graph_objects/surface_gen.go index 7ccdb9b..709efa1 100644 --- a/generated/v2.19.0/graph_objects/surface_gen.go +++ b/generated/v2.19.0/graph_objects/surface_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSurface TraceType = "surface" func (trace *Surface) GetType() TraceType { @@ -96,7 +100,7 @@ type Surface struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*SurfaceHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*SurfaceHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -113,7 +117,7 @@ type Surface struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -125,7 +129,7 @@ type Surface struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -182,7 +186,7 @@ type Surface struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -253,7 +257,7 @@ type Surface struct { // arrayOK: true // type: string // Sets the text elements associated with each z value. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -1012,7 +1016,7 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1024,7 +1028,7 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1036,7 +1040,7 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1053,7 +1057,7 @@ type SurfaceHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SurfaceHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SurfaceHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -1065,7 +1069,7 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -1077,7 +1081,7 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -1094,7 +1098,7 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/table_gen.go b/generated/v2.19.0/graph_objects/table_gen.go index 71ccdef..d9d5cb7 100644 --- a/generated/v2.19.0/graph_objects/table_gen.go +++ b/generated/v2.19.0/graph_objects/table_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeTable TraceType = "table" func (trace *Table) GetType() TraceType { @@ -36,7 +40,7 @@ type Table struct { // arrayOK: true // type: number // The width of columns expressed as a ratio. Columns fill the available width in proportion of their specified column widths. - Columnwidth ArrayOK[*float64] `json:"columnwidth,omitempty"` + Columnwidth arrayok.Type[*float64] `json:"columnwidth,omitempty"` // Columnwidthsrc // arrayOK: false @@ -71,7 +75,7 @@ type Table struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*TableHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*TableHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -117,7 +121,7 @@ type Table struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -163,7 +167,7 @@ type TableCellsFill struct { // arrayOK: true // type: color // Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -179,7 +183,7 @@ type TableCellsFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -191,7 +195,7 @@ type TableCellsFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -203,7 +207,7 @@ type TableCellsFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -219,7 +223,7 @@ type TableCellsLine struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -231,7 +235,7 @@ type TableCellsLine struct { // arrayOK: true // type: number // - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -248,7 +252,7 @@ type TableCells struct { // default: center // type: enumerated // Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. - Align ArrayOK[*TableCellsAlign] `json:"align,omitempty"` + Align arrayok.Type[*TableCellsAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -293,7 +297,7 @@ type TableCells struct { // arrayOK: true // type: string // Prefix for cell values. - Prefix ArrayOK[*string] `json:"prefix,omitempty"` + Prefix arrayok.Type[*string] `json:"prefix,omitempty"` // Prefixsrc // arrayOK: false @@ -305,7 +309,7 @@ type TableCells struct { // arrayOK: true // type: string // Suffix for cell values. - Suffix ArrayOK[*string] `json:"suffix,omitempty"` + Suffix arrayok.Type[*string] `json:"suffix,omitempty"` // Suffixsrc // arrayOK: false @@ -361,7 +365,7 @@ type TableHeaderFill struct { // arrayOK: true // type: color // Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -377,7 +381,7 @@ type TableHeaderFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -389,7 +393,7 @@ type TableHeaderFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -401,7 +405,7 @@ type TableHeaderFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -417,7 +421,7 @@ type TableHeaderLine struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -429,7 +433,7 @@ type TableHeaderLine struct { // arrayOK: true // type: number // - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -446,7 +450,7 @@ type TableHeader struct { // default: center // type: enumerated // Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. - Align ArrayOK[*TableHeaderAlign] `json:"align,omitempty"` + Align arrayok.Type[*TableHeaderAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -491,7 +495,7 @@ type TableHeader struct { // arrayOK: true // type: string // Prefix for cell values. - Prefix ArrayOK[*string] `json:"prefix,omitempty"` + Prefix arrayok.Type[*string] `json:"prefix,omitempty"` // Prefixsrc // arrayOK: false @@ -503,7 +507,7 @@ type TableHeader struct { // arrayOK: true // type: string // Suffix for cell values. - Suffix ArrayOK[*string] `json:"suffix,omitempty"` + Suffix arrayok.Type[*string] `json:"suffix,omitempty"` // Suffixsrc // arrayOK: false @@ -531,7 +535,7 @@ type TableHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -543,7 +547,7 @@ type TableHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -555,7 +559,7 @@ type TableHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -572,7 +576,7 @@ type TableHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*TableHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*TableHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -584,7 +588,7 @@ type TableHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -596,7 +600,7 @@ type TableHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -613,7 +617,7 @@ type TableHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/treemap_gen.go b/generated/v2.19.0/graph_objects/treemap_gen.go index 474dc6b..a64a398 100644 --- a/generated/v2.19.0/graph_objects/treemap_gen.go +++ b/generated/v2.19.0/graph_objects/treemap_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeTreemap TraceType = "treemap" func (trace *Treemap) GetType() TraceType { @@ -51,7 +55,7 @@ type Treemap struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*TreemapHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*TreemapHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Treemap struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -80,7 +84,7 @@ type Treemap struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -155,7 +159,7 @@ type Treemap struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -248,7 +252,7 @@ type Treemap struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -334,7 +338,7 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -346,7 +350,7 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -358,7 +362,7 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -375,7 +379,7 @@ type TreemapHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*TreemapHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*TreemapHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -387,7 +391,7 @@ type TreemapHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -399,7 +403,7 @@ type TreemapHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -416,7 +420,7 @@ type TreemapHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -432,7 +436,7 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -444,7 +448,7 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -456,7 +460,7 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -866,7 +870,7 @@ type TreemapMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -878,7 +882,7 @@ type TreemapMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1020,7 +1024,7 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1032,7 +1036,7 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1044,7 +1048,7 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1060,7 +1064,7 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1072,7 +1076,7 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1084,7 +1088,7 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1161,7 +1165,7 @@ type TreemapTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1173,7 +1177,7 @@ type TreemapTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1185,7 +1189,7 @@ type TreemapTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/violin_gen.go b/generated/v2.19.0/graph_objects/violin_gen.go index 7ae46af..19381af 100644 --- a/generated/v2.19.0/graph_objects/violin_gen.go +++ b/generated/v2.19.0/graph_objects/violin_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeViolin TraceType = "violin" func (trace *Violin) GetType() TraceType { @@ -55,7 +59,7 @@ type Violin struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ViolinHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ViolinHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -79,7 +83,7 @@ type Violin struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -91,7 +95,7 @@ type Violin struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -159,7 +163,7 @@ type Violin struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -271,7 +275,7 @@ type Violin struct { // arrayOK: true // type: string // Sets the text elements associated with each sample value. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -426,7 +430,7 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -438,7 +442,7 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -450,7 +454,7 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -467,7 +471,7 @@ type ViolinHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ViolinHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ViolinHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -479,7 +483,7 @@ type ViolinHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -491,7 +495,7 @@ type ViolinHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -508,7 +512,7 @@ type ViolinHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/volume_gen.go b/generated/v2.19.0/graph_objects/volume_gen.go index 6d0da5d..d92800e 100644 --- a/generated/v2.19.0/graph_objects/volume_gen.go +++ b/generated/v2.19.0/graph_objects/volume_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeVolume TraceType = "volume" func (trace *Volume) GetType() TraceType { @@ -95,7 +99,7 @@ type Volume struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*VolumeHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*VolumeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -112,7 +116,7 @@ type Volume struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -124,7 +128,7 @@ type Volume struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -193,7 +197,7 @@ type Volume struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -267,7 +271,7 @@ type Volume struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -820,7 +824,7 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -832,7 +836,7 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -844,7 +848,7 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -861,7 +865,7 @@ type VolumeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*VolumeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*VolumeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -873,7 +877,7 @@ type VolumeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -885,7 +889,7 @@ type VolumeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -902,7 +906,7 @@ type VolumeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/waterfall_gen.go b/generated/v2.19.0/graph_objects/waterfall_gen.go index db6fbcb..1964827 100644 --- a/generated/v2.19.0/graph_objects/waterfall_gen.go +++ b/generated/v2.19.0/graph_objects/waterfall_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeWaterfall TraceType = "waterfall" func (trace *Waterfall) GetType() TraceType { @@ -79,7 +83,7 @@ type Waterfall struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*WaterfallHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*WaterfallHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -96,7 +100,7 @@ type Waterfall struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `initial`, `delta` and `final`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -108,7 +112,7 @@ type Waterfall struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -184,7 +188,7 @@ type Waterfall struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -202,7 +206,7 @@ type Waterfall struct { // arrayOK: true // type: number // Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead. - Offset ArrayOK[*float64] `json:"offset,omitempty"` + Offset arrayok.Type[*float64] `json:"offset,omitempty"` // Offsetgroup // arrayOK: false @@ -255,7 +259,7 @@ type Waterfall struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -280,7 +284,7 @@ type Waterfall struct { // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition ArrayOK[*WaterfallTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*WaterfallTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -298,7 +302,7 @@ type Waterfall struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `initial`, `delta`, `final` and `label`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -340,7 +344,7 @@ type Waterfall struct { // arrayOK: true // type: number // Sets the bar width (in position axis units). - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -538,7 +542,7 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -550,7 +554,7 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -562,7 +566,7 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -579,7 +583,7 @@ type WaterfallHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*WaterfallHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*WaterfallHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -591,7 +595,7 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -603,7 +607,7 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -620,7 +624,7 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -676,7 +680,7 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -688,7 +692,7 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -700,7 +704,7 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -753,7 +757,7 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -765,7 +769,7 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -777,7 +781,7 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -809,7 +813,7 @@ type WaterfallTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -821,7 +825,7 @@ type WaterfallTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -833,7 +837,7 @@ type WaterfallTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/bar_gen.go b/generated/v2.29.1/graph_objects/bar_gen.go index 969823a..15eebe3 100644 --- a/generated/v2.29.1/graph_objects/bar_gen.go +++ b/generated/v2.29.1/graph_objects/bar_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeBar TraceType = "bar" func (trace *Bar) GetType() TraceType { @@ -25,7 +29,7 @@ type Bar struct { // arrayOK: true // type: any // Sets where the bar base is drawn (in position axis units). In *stack* or *relative* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead. - Base ArrayOK[*interface{}] `json:"base,omitempty"` + Base arrayok.Type[*interface{}] `json:"base,omitempty"` // Basesrc // arrayOK: false @@ -85,7 +89,7 @@ type Bar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*BarHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*BarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -102,7 +106,7 @@ type Bar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -114,7 +118,7 @@ type Bar struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -184,7 +188,7 @@ type Bar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -202,7 +206,7 @@ type Bar struct { // arrayOK: true // type: number // Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead. - Offset ArrayOK[*float64] `json:"offset,omitempty"` + Offset arrayok.Type[*float64] `json:"offset,omitempty"` // Offsetgroup // arrayOK: false @@ -260,7 +264,7 @@ type Bar struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -278,7 +282,7 @@ type Bar struct { // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition ArrayOK[*BarTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*BarTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -296,7 +300,7 @@ type Bar struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `value` and `label`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -338,7 +342,7 @@ type Bar struct { // arrayOK: true // type: number // Sets the bar width (in position axis units). - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -650,7 +654,7 @@ type BarHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -662,7 +666,7 @@ type BarHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -674,7 +678,7 @@ type BarHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -691,7 +695,7 @@ type BarHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*BarHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*BarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -703,7 +707,7 @@ type BarHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -715,7 +719,7 @@ type BarHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -732,7 +736,7 @@ type BarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -748,7 +752,7 @@ type BarInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -760,7 +764,7 @@ type BarInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -772,7 +776,7 @@ type BarInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1226,7 +1230,7 @@ type BarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1256,7 +1260,7 @@ type BarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1272,7 +1276,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -1284,7 +1288,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -1310,7 +1314,7 @@ type BarMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*BarMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*BarMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -1322,7 +1326,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1334,7 +1338,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1380,7 +1384,7 @@ type BarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1420,7 +1424,7 @@ type BarMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1453,7 +1457,7 @@ type BarOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1465,7 +1469,7 @@ type BarOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1477,7 +1481,7 @@ type BarOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1549,7 +1553,7 @@ type BarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1561,7 +1565,7 @@ type BarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1573,7 +1577,7 @@ type BarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/barpolar_gen.go b/generated/v2.29.1/graph_objects/barpolar_gen.go index 602b7d4..be5416b 100644 --- a/generated/v2.29.1/graph_objects/barpolar_gen.go +++ b/generated/v2.29.1/graph_objects/barpolar_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeBarpolar TraceType = "barpolar" func (trace *Barpolar) GetType() TraceType { @@ -19,7 +23,7 @@ type Barpolar struct { // arrayOK: true // type: any // Sets where the bar base is drawn (in radial axis units). In *stack* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead. - Base ArrayOK[*interface{}] `json:"base,omitempty"` + Base arrayok.Type[*interface{}] `json:"base,omitempty"` // Basesrc // arrayOK: false @@ -56,7 +60,7 @@ type Barpolar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*BarpolarHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*BarpolarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -73,7 +77,7 @@ type Barpolar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -85,7 +89,7 @@ type Barpolar struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -143,7 +147,7 @@ type Barpolar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -161,7 +165,7 @@ type Barpolar struct { // arrayOK: true // type: number // Shifts the angular position where the bar is drawn (in *thetatunit* units). - Offset ArrayOK[*float64] `json:"offset,omitempty"` + Offset arrayok.Type[*float64] `json:"offset,omitempty"` // Offsetsrc // arrayOK: false @@ -225,7 +229,7 @@ type Barpolar struct { // arrayOK: true // type: string // Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -292,7 +296,7 @@ type Barpolar struct { // arrayOK: true // type: number // Sets the bar angular width (in *thetaunit* units). - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -308,7 +312,7 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -320,7 +324,7 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -332,7 +336,7 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -349,7 +353,7 @@ type BarpolarHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*BarpolarHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*BarpolarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -361,7 +365,7 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -373,7 +377,7 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -390,7 +394,7 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -844,7 +848,7 @@ type BarpolarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -874,7 +878,7 @@ type BarpolarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -890,7 +894,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -902,7 +906,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -928,7 +932,7 @@ type BarpolarMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*BarpolarMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*BarpolarMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -940,7 +944,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -952,7 +956,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -998,7 +1002,7 @@ type BarpolarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1032,7 +1036,7 @@ type BarpolarMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/box_gen.go b/generated/v2.29.1/graph_objects/box_gen.go index a0563ec..1e03005 100644 --- a/generated/v2.29.1/graph_objects/box_gen.go +++ b/generated/v2.29.1/graph_objects/box_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeBox TraceType = "box" func (trace *Box) GetType() TraceType { @@ -70,7 +74,7 @@ type Box struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*BoxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*BoxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -94,7 +98,7 @@ type Box struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -106,7 +110,7 @@ type Box struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -211,7 +215,7 @@ type Box struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -362,7 +366,7 @@ type Box struct { // arrayOK: true // type: string // Sets the text elements associated with each sample value. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -544,7 +548,7 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -556,7 +560,7 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -568,7 +572,7 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -585,7 +589,7 @@ type BoxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*BoxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*BoxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -597,7 +601,7 @@ type BoxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -609,7 +613,7 @@ type BoxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -626,7 +630,7 @@ type BoxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/candlestick_gen.go b/generated/v2.29.1/graph_objects/candlestick_gen.go index 3898795..52fe649 100644 --- a/generated/v2.29.1/graph_objects/candlestick_gen.go +++ b/generated/v2.29.1/graph_objects/candlestick_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeCandlestick TraceType = "candlestick" func (trace *Candlestick) GetType() TraceType { @@ -61,7 +65,7 @@ type Candlestick struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*CandlestickHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*CandlestickHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -78,7 +82,7 @@ type Candlestick struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -153,7 +157,7 @@ type Candlestick struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -206,7 +210,7 @@ type Candlestick struct { // arrayOK: true // type: string // Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace's sample points. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -346,7 +350,7 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -358,7 +362,7 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -370,7 +374,7 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -387,7 +391,7 @@ type CandlestickHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*CandlestickHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*CandlestickHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -399,7 +403,7 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -411,7 +415,7 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -428,7 +432,7 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/carpet_gen.go b/generated/v2.29.1/graph_objects/carpet_gen.go index baf4b25..58fefec 100644 --- a/generated/v2.29.1/graph_objects/carpet_gen.go +++ b/generated/v2.29.1/graph_objects/carpet_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeCarpet TraceType = "carpet" func (trace *Carpet) GetType() TraceType { @@ -147,7 +151,7 @@ type Carpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/choropleth_gen.go b/generated/v2.29.1/graph_objects/choropleth_gen.go index 0b560e4..7eafd32 100644 --- a/generated/v2.29.1/graph_objects/choropleth_gen.go +++ b/generated/v2.29.1/graph_objects/choropleth_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeChoropleth TraceType = "choropleth" func (trace *Choropleth) GetType() TraceType { @@ -73,7 +77,7 @@ type Choropleth struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ChoroplethHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ChoroplethHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -90,7 +94,7 @@ type Choropleth struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -102,7 +106,7 @@ type Choropleth struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -179,7 +183,7 @@ type Choropleth struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -231,7 +235,7 @@ type Choropleth struct { // arrayOK: true // type: string // Sets the text elements associated with each location. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -684,7 +688,7 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -696,7 +700,7 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -708,7 +712,7 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -725,7 +729,7 @@ type ChoroplethHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ChoroplethHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ChoroplethHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -737,7 +741,7 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -749,7 +753,7 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -766,7 +770,7 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -819,7 +823,7 @@ type ChoroplethMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -831,7 +835,7 @@ type ChoroplethMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -852,7 +856,7 @@ type ChoroplethMarker struct { // arrayOK: true // type: number // Sets the opacity of the locations. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/choroplethmapbox_gen.go b/generated/v2.29.1/graph_objects/choroplethmapbox_gen.go index 1736558..46bb328 100644 --- a/generated/v2.29.1/graph_objects/choroplethmapbox_gen.go +++ b/generated/v2.29.1/graph_objects/choroplethmapbox_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeChoroplethmapbox TraceType = "choroplethmapbox" func (trace *Choroplethmapbox) GetType() TraceType { @@ -73,7 +77,7 @@ type Choroplethmapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ChoroplethmapboxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ChoroplethmapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -90,7 +94,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `properties` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -102,7 +106,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -172,7 +176,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -230,7 +234,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Sets the text elements associated with each location. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -683,7 +687,7 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -695,7 +699,7 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -707,7 +711,7 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -724,7 +728,7 @@ type ChoroplethmapboxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ChoroplethmapboxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ChoroplethmapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -736,7 +740,7 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -748,7 +752,7 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -765,7 +769,7 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -818,7 +822,7 @@ type ChoroplethmapboxMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -830,7 +834,7 @@ type ChoroplethmapboxMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -851,7 +855,7 @@ type ChoroplethmapboxMarker struct { // arrayOK: true // type: number // Sets the opacity of the locations. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/cone_gen.go b/generated/v2.29.1/graph_objects/cone_gen.go index 55925b0..bb29b5a 100644 --- a/generated/v2.29.1/graph_objects/cone_gen.go +++ b/generated/v2.29.1/graph_objects/cone_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeCone TraceType = "cone" func (trace *Cone) GetType() TraceType { @@ -86,7 +90,7 @@ type Cone struct { // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ConeHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ConeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -103,7 +107,7 @@ type Cone struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `norm` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -115,7 +119,7 @@ type Cone struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -178,7 +182,7 @@ type Cone struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -244,7 +248,7 @@ type Cone struct { // arrayOK: true // type: string // Sets the text elements associated with the cones. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -758,7 +762,7 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -770,7 +774,7 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -782,7 +786,7 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -799,7 +803,7 @@ type ConeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ConeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ConeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -811,7 +815,7 @@ type ConeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -823,7 +827,7 @@ type ConeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -840,7 +844,7 @@ type ConeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/contour_gen.go b/generated/v2.29.1/graph_objects/contour_gen.go index e9adbd7..946e32e 100644 --- a/generated/v2.29.1/graph_objects/contour_gen.go +++ b/generated/v2.29.1/graph_objects/contour_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeContour TraceType = "contour" func (trace *Contour) GetType() TraceType { @@ -90,7 +94,7 @@ type Contour struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ContourHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ContourHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -113,7 +117,7 @@ type Contour struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -183,7 +187,7 @@ type Contour struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -927,7 +931,7 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -939,7 +943,7 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -951,7 +955,7 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -968,7 +972,7 @@ type ContourHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ContourHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ContourHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -980,7 +984,7 @@ type ContourHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -992,7 +996,7 @@ type ContourHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -1009,7 +1013,7 @@ type ContourHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/contourcarpet_gen.go b/generated/v2.29.1/graph_objects/contourcarpet_gen.go index e04f9aa..2fca842 100644 --- a/generated/v2.29.1/graph_objects/contourcarpet_gen.go +++ b/generated/v2.29.1/graph_objects/contourcarpet_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeContourcarpet TraceType = "contourcarpet" func (trace *Contourcarpet) GetType() TraceType { @@ -197,7 +201,7 @@ type Contourcarpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/densitymapbox_gen.go b/generated/v2.29.1/graph_objects/densitymapbox_gen.go index 38f6b11..ec0b504 100644 --- a/generated/v2.29.1/graph_objects/densitymapbox_gen.go +++ b/generated/v2.29.1/graph_objects/densitymapbox_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeDensitymapbox TraceType = "densitymapbox" func (trace *Densitymapbox) GetType() TraceType { @@ -61,7 +65,7 @@ type Densitymapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*DensitymapboxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*DensitymapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -78,7 +82,7 @@ type Densitymapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -90,7 +94,7 @@ type Densitymapbox struct { // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -167,7 +171,7 @@ type Densitymapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -191,7 +195,7 @@ type Densitymapbox struct { // arrayOK: true // type: number // Sets the radius of influence of one `lon` / `lat` point in pixels. Increasing the value makes the densitymapbox trace smoother, but less detailed. - Radius ArrayOK[*float64] `json:"radius,omitempty"` + Radius arrayok.Type[*float64] `json:"radius,omitempty"` // Radiussrc // arrayOK: false @@ -232,7 +236,7 @@ type Densitymapbox struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -680,7 +684,7 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -692,7 +696,7 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -704,7 +708,7 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -721,7 +725,7 @@ type DensitymapboxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*DensitymapboxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*DensitymapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -733,7 +737,7 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -745,7 +749,7 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -762,7 +766,7 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/funnel_gen.go b/generated/v2.29.1/graph_objects/funnel_gen.go index 5751b18..3b3c8de 100644 --- a/generated/v2.29.1/graph_objects/funnel_gen.go +++ b/generated/v2.29.1/graph_objects/funnel_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeFunnel TraceType = "funnel" func (trace *Funnel) GetType() TraceType { @@ -68,7 +72,7 @@ type Funnel struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*FunnelHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*FunnelHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -85,7 +89,7 @@ type Funnel struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `percentInitial`, `percentPrevious` and `percentTotal`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -97,7 +101,7 @@ type Funnel struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -167,7 +171,7 @@ type Funnel struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -232,7 +236,7 @@ type Funnel struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -257,7 +261,7 @@ type Funnel struct { // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition ArrayOK[*FunnelTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*FunnelTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -275,7 +279,7 @@ type Funnel struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `percentInitial`, `percentPrevious`, `percentTotal`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -463,7 +467,7 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -475,7 +479,7 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -487,7 +491,7 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -504,7 +508,7 @@ type FunnelHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*FunnelHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*FunnelHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -516,7 +520,7 @@ type FunnelHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -528,7 +532,7 @@ type FunnelHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -545,7 +549,7 @@ type FunnelHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -561,7 +565,7 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -573,7 +577,7 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -585,7 +589,7 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1039,7 +1043,7 @@ type FunnelMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1069,7 +1073,7 @@ type FunnelMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1115,7 +1119,7 @@ type FunnelMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1149,7 +1153,7 @@ type FunnelMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1177,7 +1181,7 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1189,7 +1193,7 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1201,7 +1205,7 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1233,7 +1237,7 @@ type FunnelTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1245,7 +1249,7 @@ type FunnelTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1257,7 +1261,7 @@ type FunnelTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/funnelarea_gen.go b/generated/v2.29.1/graph_objects/funnelarea_gen.go index 4fd348b..c08cad7 100644 --- a/generated/v2.29.1/graph_objects/funnelarea_gen.go +++ b/generated/v2.29.1/graph_objects/funnelarea_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeFunnelarea TraceType = "funnelarea" func (trace *Funnelarea) GetType() TraceType { @@ -55,7 +59,7 @@ type Funnelarea struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*FunnelareaHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*FunnelareaHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -72,7 +76,7 @@ type Funnelarea struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `text` and `percent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -84,7 +88,7 @@ type Funnelarea struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -165,7 +169,7 @@ type Funnelarea struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -225,7 +229,7 @@ type Funnelarea struct { // default: inside // type: enumerated // Specifies the location of the `textinfo`. - Textposition ArrayOK[*FunnelareaTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*FunnelareaTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -243,7 +247,7 @@ type Funnelarea struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `text` and `percent`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -329,7 +333,7 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -341,7 +345,7 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -353,7 +357,7 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -370,7 +374,7 @@ type FunnelareaHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*FunnelareaHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*FunnelareaHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -382,7 +386,7 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -394,7 +398,7 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -411,7 +415,7 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -427,7 +431,7 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -439,7 +443,7 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -451,7 +455,7 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -504,7 +508,7 @@ type FunnelareaMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -516,7 +520,7 @@ type FunnelareaMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -532,7 +536,7 @@ type FunnelareaMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -544,7 +548,7 @@ type FunnelareaMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -570,7 +574,7 @@ type FunnelareaMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*FunnelareaMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*FunnelareaMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -582,7 +586,7 @@ type FunnelareaMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -594,7 +598,7 @@ type FunnelareaMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -652,7 +656,7 @@ type FunnelareaTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -664,7 +668,7 @@ type FunnelareaTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -676,7 +680,7 @@ type FunnelareaTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -692,7 +696,7 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -704,7 +708,7 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -716,7 +720,7 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/heatmap_gen.go b/generated/v2.29.1/graph_objects/heatmap_gen.go index aaf1f5c..37ea371 100644 --- a/generated/v2.29.1/graph_objects/heatmap_gen.go +++ b/generated/v2.29.1/graph_objects/heatmap_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHeatmap TraceType = "heatmap" func (trace *Heatmap) GetType() TraceType { @@ -73,7 +77,7 @@ type Heatmap struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*HeatmapHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*HeatmapHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -96,7 +100,7 @@ type Heatmap struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -161,7 +165,7 @@ type Heatmap struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -824,7 +828,7 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -836,7 +840,7 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -848,7 +852,7 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -865,7 +869,7 @@ type HeatmapHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*HeatmapHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*HeatmapHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -877,7 +881,7 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -889,7 +893,7 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -906,7 +910,7 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/heatmapgl_gen.go b/generated/v2.29.1/graph_objects/heatmapgl_gen.go index fbe68f3..f2ce8ae 100644 --- a/generated/v2.29.1/graph_objects/heatmapgl_gen.go +++ b/generated/v2.29.1/graph_objects/heatmapgl_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHeatmapgl TraceType = "heatmapgl" func (trace *Heatmapgl) GetType() TraceType { @@ -67,7 +71,7 @@ type Heatmapgl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*HeatmapglHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*HeatmapglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -119,7 +123,7 @@ type Heatmapgl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -683,7 +687,7 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -695,7 +699,7 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -707,7 +711,7 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -724,7 +728,7 @@ type HeatmapglHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*HeatmapglHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*HeatmapglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -736,7 +740,7 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -748,7 +752,7 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -765,7 +769,7 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/histogram2d_gen.go b/generated/v2.29.1/graph_objects/histogram2d_gen.go index f6d6fa5..99a45bc 100644 --- a/generated/v2.29.1/graph_objects/histogram2d_gen.go +++ b/generated/v2.29.1/graph_objects/histogram2d_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHistogram2d TraceType = "histogram2d" func (trace *Histogram2d) GetType() TraceType { @@ -87,7 +91,7 @@ type Histogram2d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Histogram2dHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Histogram2dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -104,7 +108,7 @@ type Histogram2d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `z` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -162,7 +166,7 @@ type Histogram2d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -777,7 +781,7 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -789,7 +793,7 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -801,7 +805,7 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -818,7 +822,7 @@ type Histogram2dHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Histogram2dHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Histogram2dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -830,7 +834,7 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -842,7 +846,7 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -859,7 +863,7 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/histogram2dcontour_gen.go b/generated/v2.29.1/graph_objects/histogram2dcontour_gen.go index 5bd181d..0b5428c 100644 --- a/generated/v2.29.1/graph_objects/histogram2dcontour_gen.go +++ b/generated/v2.29.1/graph_objects/histogram2dcontour_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHistogram2dcontour TraceType = "histogram2dcontour" func (trace *Histogram2dcontour) GetType() TraceType { @@ -98,7 +102,7 @@ type Histogram2dcontour struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Histogram2dcontourHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Histogram2dcontourHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -115,7 +119,7 @@ type Histogram2dcontour struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `z` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -178,7 +182,7 @@ type Histogram2dcontour struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -874,7 +878,7 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -886,7 +890,7 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -898,7 +902,7 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -915,7 +919,7 @@ type Histogram2dcontourHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Histogram2dcontourHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Histogram2dcontourHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -927,7 +931,7 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -939,7 +943,7 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -956,7 +960,7 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/histogram_gen.go b/generated/v2.29.1/graph_objects/histogram_gen.go index 9aa840c..f065635 100644 --- a/generated/v2.29.1/graph_objects/histogram_gen.go +++ b/generated/v2.29.1/graph_objects/histogram_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHistogram TraceType = "histogram" func (trace *Histogram) GetType() TraceType { @@ -98,7 +102,7 @@ type Histogram struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*HistogramHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*HistogramHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -115,7 +119,7 @@ type Histogram struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `binNumber` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -127,7 +131,7 @@ type Histogram struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -197,7 +201,7 @@ type Histogram struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -273,7 +277,7 @@ type Histogram struct { // arrayOK: true // type: string // Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -623,7 +627,7 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -635,7 +639,7 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -647,7 +651,7 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -664,7 +668,7 @@ type HistogramHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*HistogramHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*HistogramHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -676,7 +680,7 @@ type HistogramHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -688,7 +692,7 @@ type HistogramHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -705,7 +709,7 @@ type HistogramHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -1181,7 +1185,7 @@ type HistogramMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1211,7 +1215,7 @@ type HistogramMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1227,7 +1231,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -1239,7 +1243,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -1265,7 +1269,7 @@ type HistogramMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*HistogramMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*HistogramMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -1277,7 +1281,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1289,7 +1293,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1335,7 +1339,7 @@ type HistogramMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1375,7 +1379,7 @@ type HistogramMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/icicle_gen.go b/generated/v2.29.1/graph_objects/icicle_gen.go index 62baa30..29ef8da 100644 --- a/generated/v2.29.1/graph_objects/icicle_gen.go +++ b/generated/v2.29.1/graph_objects/icicle_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeIcicle TraceType = "icicle" func (trace *Icicle) GetType() TraceType { @@ -51,7 +55,7 @@ type Icicle struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*IcicleHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*IcicleHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Icicle struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -80,7 +84,7 @@ type Icicle struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -166,7 +170,7 @@ type Icicle struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -259,7 +263,7 @@ type Icicle struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -345,7 +349,7 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -357,7 +361,7 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -369,7 +373,7 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -386,7 +390,7 @@ type IcicleHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*IcicleHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*IcicleHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -398,7 +402,7 @@ type IcicleHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -410,7 +414,7 @@ type IcicleHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -427,7 +431,7 @@ type IcicleHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -443,7 +447,7 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -455,7 +459,7 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -467,7 +471,7 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -901,7 +905,7 @@ type IcicleMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -913,7 +917,7 @@ type IcicleMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -929,7 +933,7 @@ type IcicleMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -941,7 +945,7 @@ type IcicleMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -967,7 +971,7 @@ type IcicleMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*IcicleMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*IcicleMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -979,7 +983,7 @@ type IcicleMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -991,7 +995,7 @@ type IcicleMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1092,7 +1096,7 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1104,7 +1108,7 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1116,7 +1120,7 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1132,7 +1136,7 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1144,7 +1148,7 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1156,7 +1160,7 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1233,7 +1237,7 @@ type IcicleTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1245,7 +1249,7 @@ type IcicleTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1257,7 +1261,7 @@ type IcicleTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/image_gen.go b/generated/v2.29.1/graph_objects/image_gen.go index 7efe363..80ddc3a 100644 --- a/generated/v2.29.1/graph_objects/image_gen.go +++ b/generated/v2.29.1/graph_objects/image_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeImage TraceType = "image" func (trace *Image) GetType() TraceType { @@ -51,7 +55,7 @@ type Image struct { // default: x+y+z+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ImageHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ImageHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Image struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `z`, `color` and `colormodel`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -127,7 +131,7 @@ type Image struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -252,7 +256,7 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -264,7 +268,7 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -276,7 +280,7 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -293,7 +297,7 @@ type ImageHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ImageHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ImageHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -305,7 +309,7 @@ type ImageHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -317,7 +321,7 @@ type ImageHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -334,7 +338,7 @@ type ImageHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/indicator_gen.go b/generated/v2.29.1/graph_objects/indicator_gen.go index 053bf6e..c08f169 100644 --- a/generated/v2.29.1/graph_objects/indicator_gen.go +++ b/generated/v2.29.1/graph_objects/indicator_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeIndicator TraceType = "indicator" func (trace *Indicator) GetType() TraceType { @@ -88,7 +92,7 @@ type Indicator struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/isosurface_gen.go b/generated/v2.29.1/graph_objects/isosurface_gen.go index 3ce9be8..21ff0df 100644 --- a/generated/v2.29.1/graph_objects/isosurface_gen.go +++ b/generated/v2.29.1/graph_objects/isosurface_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeIsosurface TraceType = "isosurface" func (trace *Isosurface) GetType() TraceType { @@ -95,7 +99,7 @@ type Isosurface struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*IsosurfaceHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*IsosurfaceHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -112,7 +116,7 @@ type Isosurface struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -124,7 +128,7 @@ type Isosurface struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -199,7 +203,7 @@ type Isosurface struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -267,7 +271,7 @@ type Isosurface struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -834,7 +838,7 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -846,7 +850,7 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -858,7 +862,7 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -875,7 +879,7 @@ type IsosurfaceHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*IsosurfaceHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*IsosurfaceHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -887,7 +891,7 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -899,7 +903,7 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -916,7 +920,7 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/layout_gen.go b/generated/v2.29.1/graph_objects/layout_gen.go index bdcb87a..7428165 100644 --- a/generated/v2.29.1/graph_objects/layout_gen.go +++ b/generated/v2.29.1/graph_objects/layout_gen.go @@ -1,6 +1,12 @@ package grob -// Code generated by go-plotly/generator. DO NOT EDIT.// Layout Plot layout options +// Code generated by go-plotly/generator. DO NOT EDIT. + +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + +// Layout Plot layout options type Layout struct { // Activeselection @@ -281,7 +287,7 @@ type Layout struct { // arrayOK: true // type: any // Assigns extra meta information that can be used in various `text` attributes. Attributes such as the graph, axis and colorbar `title.text`, annotation `text` `trace.name` in legend items, `rangeselector`, `updatemenus` and `sliders` `label` text all support `meta`. One can access `meta` fields using template strings: `%{meta[i]}` where `i` is the index of the `meta` item in question. `meta` can also be an object for example `{key: value}` which can be accessed %{meta[key]}. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -2067,7 +2073,7 @@ type LayoutModebar struct { // arrayOK: true // type: string // Determines which predefined modebar buttons to add. Please note that these buttons will only be shown if they are compatible with all trace types used in a graph. Similar to `config.modeBarButtonsToAdd` option. This may include *v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*, *drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect*, *eraseshape*. - Add ArrayOK[*string] `json:"add,omitempty"` + Add arrayok.Type[*string] `json:"add,omitempty"` // Addsrc // arrayOK: false @@ -2098,7 +2104,7 @@ type LayoutModebar struct { // arrayOK: true // type: string // Determines which predefined modebar buttons to remove. Similar to `config.modeBarButtonsToRemove` option. This may include *autoScale2d*, *autoscale*, *editInChartStudio*, *editinchartstudio*, *hoverCompareCartesian*, *hovercompare*, *lasso*, *lasso2d*, *orbitRotation*, *orbitrotation*, *pan*, *pan2d*, *pan3d*, *reset*, *resetCameraDefault3d*, *resetCameraLastSave3d*, *resetGeo*, *resetSankeyGroup*, *resetScale2d*, *resetViewMapbox*, *resetViews*, *resetcameradefault*, *resetcameralastsave*, *resetsankeygroup*, *resetscale*, *resetview*, *resetviews*, *select*, *select2d*, *sendDataToCloud*, *senddatatocloud*, *tableRotation*, *tablerotation*, *toImage*, *toggleHover*, *toggleSpikelines*, *togglehover*, *togglespikelines*, *toimage*, *zoom*, *zoom2d*, *zoom3d*, *zoomIn2d*, *zoomInGeo*, *zoomInMapbox*, *zoomOut2d*, *zoomOutGeo*, *zoomOutMapbox*, *zoomin*, *zoomout*. - Remove ArrayOK[*string] `json:"remove,omitempty"` + Remove arrayok.Type[*string] `json:"remove,omitempty"` // Removesrc // arrayOK: false @@ -2753,7 +2759,7 @@ type LayoutPolarRadialaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false @@ -3398,7 +3404,7 @@ type LayoutSceneXaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false @@ -3865,7 +3871,7 @@ type LayoutSceneYaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false @@ -4332,7 +4338,7 @@ type LayoutSceneZaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false @@ -6447,7 +6453,7 @@ type LayoutXaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false @@ -7351,7 +7357,7 @@ type LayoutYaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/mesh3d_gen.go b/generated/v2.29.1/graph_objects/mesh3d_gen.go index a3459df..0509104 100644 --- a/generated/v2.29.1/graph_objects/mesh3d_gen.go +++ b/generated/v2.29.1/graph_objects/mesh3d_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeMesh3d TraceType = "mesh3d" func (trace *Mesh3d) GetType() TraceType { @@ -121,7 +125,7 @@ type Mesh3d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Mesh3dHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Mesh3dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -138,7 +142,7 @@ type Mesh3d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -150,7 +154,7 @@ type Mesh3d struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -268,7 +272,7 @@ type Mesh3d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -321,7 +325,7 @@ type Mesh3d struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -836,7 +840,7 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -848,7 +852,7 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -860,7 +864,7 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -877,7 +881,7 @@ type Mesh3dHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Mesh3dHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Mesh3dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -889,7 +893,7 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -901,7 +905,7 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -918,7 +922,7 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/ohlc_gen.go b/generated/v2.29.1/graph_objects/ohlc_gen.go index 11ddd88..470e82c 100644 --- a/generated/v2.29.1/graph_objects/ohlc_gen.go +++ b/generated/v2.29.1/graph_objects/ohlc_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeOhlc TraceType = "ohlc" func (trace *Ohlc) GetType() TraceType { @@ -61,7 +65,7 @@ type Ohlc struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*OhlcHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*OhlcHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -78,7 +82,7 @@ type Ohlc struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -153,7 +157,7 @@ type Ohlc struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -206,7 +210,7 @@ type Ohlc struct { // arrayOK: true // type: string // Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace's sample points. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -346,7 +350,7 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -358,7 +362,7 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -370,7 +374,7 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -387,7 +391,7 @@ type OhlcHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*OhlcHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*OhlcHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -399,7 +403,7 @@ type OhlcHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -411,7 +415,7 @@ type OhlcHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -428,7 +432,7 @@ type OhlcHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/parcats_gen.go b/generated/v2.29.1/graph_objects/parcats_gen.go index 86f313e..8119335 100644 --- a/generated/v2.29.1/graph_objects/parcats_gen.go +++ b/generated/v2.29.1/graph_objects/parcats_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeParcats TraceType = "parcats" func (trace *Parcats) GetType() TraceType { @@ -32,7 +36,7 @@ type Parcats struct { // arrayOK: true // type: number // The number of observations represented by each state. Defaults to 1 so that each state represents one observation - Counts ArrayOK[*float64] `json:"counts,omitempty"` + Counts arrayok.Type[*float64] `json:"counts,omitempty"` // Countssrc // arrayOK: false @@ -96,7 +100,7 @@ type Parcats struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -648,7 +652,7 @@ type ParcatsLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/parcoords_gen.go b/generated/v2.29.1/graph_objects/parcoords_gen.go index abf7c48..577a3af 100644 --- a/generated/v2.29.1/graph_objects/parcoords_gen.go +++ b/generated/v2.29.1/graph_objects/parcoords_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeParcoords TraceType = "parcoords" func (trace *Parcoords) GetType() TraceType { @@ -100,7 +104,7 @@ type Parcoords struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -655,7 +659,7 @@ type ParcoordsLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/pie_gen.go b/generated/v2.29.1/graph_objects/pie_gen.go index 93021e5..028b0c9 100644 --- a/generated/v2.29.1/graph_objects/pie_gen.go +++ b/generated/v2.29.1/graph_objects/pie_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypePie TraceType = "pie" func (trace *Pie) GetType() TraceType { @@ -62,7 +66,7 @@ type Pie struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*PieHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*PieHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -79,7 +83,7 @@ type Pie struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `percent` and `text`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -91,7 +95,7 @@ type Pie struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -179,7 +183,7 @@ type Pie struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -208,7 +212,7 @@ type Pie struct { // arrayOK: true // type: number // Sets the fraction of larger radius to pull the sectors out from the center. This can be a constant to pull all slices apart from each other equally or an array to highlight one or more slices. - Pull ArrayOK[*float64] `json:"pull,omitempty"` + Pull arrayok.Type[*float64] `json:"pull,omitempty"` // Pullsrc // arrayOK: false @@ -268,7 +272,7 @@ type Pie struct { // default: auto // type: enumerated // Specifies the location of the `textinfo`. - Textposition ArrayOK[*PieTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*PieTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -286,7 +290,7 @@ type Pie struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `percent` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -372,7 +376,7 @@ type PieHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -384,7 +388,7 @@ type PieHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -396,7 +400,7 @@ type PieHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -413,7 +417,7 @@ type PieHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*PieHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*PieHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -425,7 +429,7 @@ type PieHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -437,7 +441,7 @@ type PieHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -454,7 +458,7 @@ type PieHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -470,7 +474,7 @@ type PieInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -482,7 +486,7 @@ type PieInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -494,7 +498,7 @@ type PieInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -547,7 +551,7 @@ type PieMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -559,7 +563,7 @@ type PieMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -575,7 +579,7 @@ type PieMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -587,7 +591,7 @@ type PieMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -613,7 +617,7 @@ type PieMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*PieMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*PieMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -625,7 +629,7 @@ type PieMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -637,7 +641,7 @@ type PieMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -679,7 +683,7 @@ type PieOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -691,7 +695,7 @@ type PieOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -703,7 +707,7 @@ type PieOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -735,7 +739,7 @@ type PieTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -747,7 +751,7 @@ type PieTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -759,7 +763,7 @@ type PieTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -775,7 +779,7 @@ type PieTitleFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -787,7 +791,7 @@ type PieTitleFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -799,7 +803,7 @@ type PieTitleFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/plotly_gen.go b/generated/v2.29.1/graph_objects/plotly_gen.go index f1b563d..692f355 100644 --- a/generated/v2.29.1/graph_objects/plotly_gen.go +++ b/generated/v2.29.1/graph_objects/plotly_gen.go @@ -153,52 +153,3 @@ type ColorList []Color // ColorScale A Plotly colorscale either picked by a name: (any of Greys, YlGnBu, Greens, YlOrRd, Bluered, RdBu, Reds, Blues, Picnic, Rainbow, Portland, Jet, Hot, Blackbody, Earth, Electric, Viridis, Cividis ) customized as an {array} of 2-element {arrays} where the first element is the normalized color level value (starting at *0* and ending at *1*), and the second item is a valid color string. type ColorScale interface{} - -func ArrayOKValue[T any](value T) ArrayOK[*T] { - v := &value - return ArrayOK[*T]{Value: v} -} - -func ArrayOKArray[T any](array ...T) ArrayOK[*T] { - out := make([]*T, len(array)) - for i, v := range array { - value := v - out[i] = &value - } - return ArrayOK[*T]{ - Array: out, - } -} - -// ArrayOK is a type that allows you to define a single value or an array of values, But not both. -// If Array is defined, Value will be ignored. -type ArrayOK[T any] struct { - Value T - Array []T -} - -func (arrayOK *ArrayOK[T]) MarshalJSON() ([]byte, error) { - if arrayOK.Array != nil { - return json.Marshal(arrayOK.Array) - } - return json.Marshal(arrayOK.Value) -} - -func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error { - arrayOK.Array = nil - - var array []T - err := json.Unmarshal(data, &array) - if err == nil { - arrayOK.Array = array - return nil - } - - var value T - err = json.Unmarshal(data, &value) - if err != nil { - return err - } - arrayOK.Value = value - return nil -} diff --git a/generated/v2.29.1/graph_objects/pointcloud_gen.go b/generated/v2.29.1/graph_objects/pointcloud_gen.go index c99e053..8d6dd81 100644 --- a/generated/v2.29.1/graph_objects/pointcloud_gen.go +++ b/generated/v2.29.1/graph_objects/pointcloud_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypePointcloud TraceType = "pointcloud" func (trace *Pointcloud) GetType() TraceType { @@ -32,7 +36,7 @@ type Pointcloud struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*PointcloudHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*PointcloudHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -107,7 +111,7 @@ type Pointcloud struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -142,7 +146,7 @@ type Pointcloud struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -249,7 +253,7 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -261,7 +265,7 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -273,7 +277,7 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -290,7 +294,7 @@ type PointcloudHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*PointcloudHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*PointcloudHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -302,7 +306,7 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -314,7 +318,7 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -331,7 +335,7 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/sankey_gen.go b/generated/v2.29.1/graph_objects/sankey_gen.go index 3a4b15a..6ab822d 100644 --- a/generated/v2.29.1/graph_objects/sankey_gen.go +++ b/generated/v2.29.1/graph_objects/sankey_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSankey TraceType = "sankey" func (trace *Sankey) GetType() TraceType { @@ -95,7 +99,7 @@ type Sankey struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -204,7 +208,7 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -216,7 +220,7 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -228,7 +232,7 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -245,7 +249,7 @@ type SankeyHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SankeyHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SankeyHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -257,7 +261,7 @@ type SankeyHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -269,7 +273,7 @@ type SankeyHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -286,7 +290,7 @@ type SankeyHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -339,7 +343,7 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -351,7 +355,7 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -363,7 +367,7 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -380,7 +384,7 @@ type SankeyLinkHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SankeyLinkHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SankeyLinkHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -392,7 +396,7 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -404,7 +408,7 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -421,7 +425,7 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -437,7 +441,7 @@ type SankeyLinkLine struct { // arrayOK: true // type: color // Sets the color of the `line` around each `link`. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -449,7 +453,7 @@ type SankeyLinkLine struct { // arrayOK: true // type: number // Sets the width (in px) of the `line` around each `link`. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -471,7 +475,7 @@ type SankeyLink struct { // arrayOK: true // type: color // Sets the `link` color. It can be a single value, or an array for specifying color for each `link`. If `link.color` is omitted, then by default, a translucent grey link will be used. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorscales // It's an items array and what goes inside it's... messy... check the docs @@ -501,7 +505,7 @@ type SankeyLink struct { // arrayOK: true // type: color // Sets the `link` hover color. It can be a single value, or an array for specifying hover colors for each `link`. If `link.hovercolor` is omitted, then by default, links will become slightly more opaque when hovered over. - Hovercolor ArrayOK[*Color] `json:"hovercolor,omitempty"` + Hovercolor arrayok.Type[*Color] `json:"hovercolor,omitempty"` // Hovercolorsrc // arrayOK: false @@ -525,7 +529,7 @@ type SankeyLink struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Variables `source` and `target` are node objects.Finally, the template string has access to variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -594,7 +598,7 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -606,7 +610,7 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -618,7 +622,7 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -635,7 +639,7 @@ type SankeyNodeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SankeyNodeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SankeyNodeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -647,7 +651,7 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -659,7 +663,7 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -676,7 +680,7 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -692,7 +696,7 @@ type SankeyNodeLine struct { // arrayOK: true // type: color // Sets the color of the `line` around each `node`. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -704,7 +708,7 @@ type SankeyNodeLine struct { // arrayOK: true // type: number // Sets the width (in px) of the `line` around each `node`. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -727,7 +731,7 @@ type SankeyNode struct { // arrayOK: true // type: color // Sets the `node` color. It can be a single value, or an array for specifying color for each `node`. If `node.color` is omitted, then the default `Plotly` color palette will be cycled through to have a variety of colors. These defaults are not fully opaque, to allow some visibility of what is beneath the node. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -769,7 +773,7 @@ type SankeyNode struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Variables `sourceLinks` and `targetLinks` are arrays of link objects.Finally, the template string has access to variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scatter3d_gen.go b/generated/v2.29.1/graph_objects/scatter3d_gen.go index b1798dc..5f1a3f1 100644 --- a/generated/v2.29.1/graph_objects/scatter3d_gen.go +++ b/generated/v2.29.1/graph_objects/scatter3d_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatter3d TraceType = "scatter3d" func (trace *Scatter3d) GetType() TraceType { @@ -53,7 +57,7 @@ type Scatter3d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Scatter3dHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Scatter3dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -70,7 +74,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -82,7 +86,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y,z) triplet. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y,z) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -145,7 +149,7 @@ type Scatter3d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -211,7 +215,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y,z) triplet. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y,z) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -223,7 +227,7 @@ type Scatter3d struct { // default: top center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*Scatter3dTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*Scatter3dTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -241,7 +245,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -636,7 +640,7 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -648,7 +652,7 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -660,7 +664,7 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -677,7 +681,7 @@ type Scatter3dHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Scatter3dHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Scatter3dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -689,7 +693,7 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -701,7 +705,7 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -718,7 +722,7 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -1172,7 +1176,7 @@ type Scatter3dLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1631,7 +1635,7 @@ type Scatter3dMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1701,7 +1705,7 @@ type Scatter3dMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1753,7 +1757,7 @@ type Scatter3dMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1785,7 +1789,7 @@ type Scatter3dMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. - Symbol ArrayOK[*Scatter3dMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*Scatter3dMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1902,7 +1906,7 @@ type Scatter3dTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1920,7 +1924,7 @@ type Scatter3dTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scatter_gen.go b/generated/v2.29.1/graph_objects/scatter_gen.go index dc6a4e2..a52fdfd 100644 --- a/generated/v2.29.1/graph_objects/scatter_gen.go +++ b/generated/v2.29.1/graph_objects/scatter_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatter TraceType = "scatter" func (trace *Scatter) GetType() TraceType { @@ -97,7 +101,7 @@ type Scatter struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -121,7 +125,7 @@ type Scatter struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -133,7 +137,7 @@ type Scatter struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -196,7 +200,7 @@ type Scatter struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -275,7 +279,7 @@ type Scatter struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -287,7 +291,7 @@ type Scatter struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -305,7 +309,7 @@ type Scatter struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -647,7 +651,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -659,7 +663,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -685,7 +689,7 @@ type ScatterFillpattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*ScatterFillpatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*ScatterFillpatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -697,7 +701,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -709,7 +713,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -725,7 +729,7 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -737,7 +741,7 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -749,7 +753,7 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -766,7 +770,7 @@ type ScatterHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -778,7 +782,7 @@ type ScatterHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -790,7 +794,7 @@ type ScatterHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -807,7 +811,7 @@ type ScatterHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -860,7 +864,7 @@ type ScatterLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -1284,7 +1288,7 @@ type ScatterMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1297,7 +1301,7 @@ type ScatterMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScatterMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScatterMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -1343,7 +1347,7 @@ type ScatterMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1373,7 +1377,7 @@ type ScatterMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1389,7 +1393,7 @@ type ScatterMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1438,7 +1442,7 @@ type ScatterMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1483,7 +1487,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1507,7 +1511,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1538,7 +1542,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1551,7 +1555,7 @@ type ScatterMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1629,7 +1633,7 @@ type ScatterTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1641,7 +1645,7 @@ type ScatterTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1653,7 +1657,7 @@ type ScatterTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scattercarpet_gen.go b/generated/v2.29.1/graph_objects/scattercarpet_gen.go index 588ddae..2c50546 100644 --- a/generated/v2.29.1/graph_objects/scattercarpet_gen.go +++ b/generated/v2.29.1/graph_objects/scattercarpet_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattercarpet TraceType = "scattercarpet" func (trace *Scattercarpet) GetType() TraceType { @@ -81,7 +85,7 @@ type Scattercarpet struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattercarpetHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattercarpetHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -105,7 +109,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -117,7 +121,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Sets hover text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -180,7 +184,7 @@ type Scattercarpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -233,7 +237,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Sets text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -245,7 +249,7 @@ type Scattercarpet struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScattercarpetTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScattercarpetTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -263,7 +267,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `a`, `b` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -321,7 +325,7 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -333,7 +337,7 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -345,7 +349,7 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -362,7 +366,7 @@ type ScattercarpetHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattercarpetHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattercarpetHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -374,7 +378,7 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -386,7 +390,7 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -403,7 +407,7 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -456,7 +460,7 @@ type ScattercarpetLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -874,7 +878,7 @@ type ScattercarpetMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -887,7 +891,7 @@ type ScattercarpetMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScattercarpetMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScattercarpetMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -933,7 +937,7 @@ type ScattercarpetMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -963,7 +967,7 @@ type ScattercarpetMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -979,7 +983,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1028,7 +1032,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1073,7 +1077,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1097,7 +1101,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1128,7 +1132,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1141,7 +1145,7 @@ type ScattercarpetMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScattercarpetMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScattercarpetMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1219,7 +1223,7 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1231,7 +1235,7 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1243,7 +1247,7 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scattergeo_gen.go b/generated/v2.29.1/graph_objects/scattergeo_gen.go index eb616e6..f04c9b4 100644 --- a/generated/v2.29.1/graph_objects/scattergeo_gen.go +++ b/generated/v2.29.1/graph_objects/scattergeo_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattergeo TraceType = "scattergeo" func (trace *Scattergeo) GetType() TraceType { @@ -69,7 +73,7 @@ type Scattergeo struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattergeoHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattergeoHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -86,7 +90,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -98,7 +102,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair or item in `locations`. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) or `locations` coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -204,7 +208,7 @@ type Scattergeo struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -257,7 +261,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair or item in `locations`. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) or `locations` coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -269,7 +273,7 @@ type Scattergeo struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScattergeoTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScattergeoTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -287,7 +291,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `lat`, `lon`, `location` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -333,7 +337,7 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -345,7 +349,7 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -357,7 +361,7 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -374,7 +378,7 @@ type ScattergeoHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattergeoHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattergeoHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -386,7 +390,7 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -398,7 +402,7 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -415,7 +419,7 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -861,7 +865,7 @@ type ScattergeoMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -874,7 +878,7 @@ type ScattergeoMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScattergeoMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScattergeoMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -920,7 +924,7 @@ type ScattergeoMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -950,7 +954,7 @@ type ScattergeoMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -966,7 +970,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1015,7 +1019,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1054,7 +1058,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1078,7 +1082,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1109,7 +1113,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1122,7 +1126,7 @@ type ScattergeoMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScattergeoMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScattergeoMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1200,7 +1204,7 @@ type ScattergeoTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1212,7 +1216,7 @@ type ScattergeoTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1224,7 +1228,7 @@ type ScattergeoTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scattergl_gen.go b/generated/v2.29.1/graph_objects/scattergl_gen.go index d45dff5..8eedcd4 100644 --- a/generated/v2.29.1/graph_objects/scattergl_gen.go +++ b/generated/v2.29.1/graph_objects/scattergl_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattergl TraceType = "scattergl" func (trace *Scattergl) GetType() TraceType { @@ -73,7 +77,7 @@ type Scattergl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterglHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -90,7 +94,7 @@ type Scattergl struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -102,7 +106,7 @@ type Scattergl struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -165,7 +169,7 @@ type Scattergl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -218,7 +222,7 @@ type Scattergl struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -230,7 +234,7 @@ type Scattergl struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterglTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterglTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -248,7 +252,7 @@ type Scattergl struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -590,7 +594,7 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -602,7 +606,7 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -614,7 +618,7 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -631,7 +635,7 @@ type ScatterglHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterglHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -643,7 +647,7 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -655,7 +659,7 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -672,7 +676,7 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -1156,7 +1160,7 @@ type ScatterglMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1186,7 +1190,7 @@ type ScatterglMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1202,7 +1206,7 @@ type ScatterglMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -1244,7 +1248,7 @@ type ScatterglMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1278,7 +1282,7 @@ type ScatterglMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1302,7 +1306,7 @@ type ScatterglMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1334,7 +1338,7 @@ type ScatterglMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterglMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterglMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1412,7 +1416,7 @@ type ScatterglTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1424,7 +1428,7 @@ type ScatterglTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1436,7 +1440,7 @@ type ScatterglTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scattermapbox_gen.go b/generated/v2.29.1/graph_objects/scattermapbox_gen.go index aa1a94f..c1fb4db 100644 --- a/generated/v2.29.1/graph_objects/scattermapbox_gen.go +++ b/generated/v2.29.1/graph_objects/scattermapbox_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattermapbox TraceType = "scattermapbox" func (trace *Scattermapbox) GetType() TraceType { @@ -62,7 +66,7 @@ type Scattermapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattermapboxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattermapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -79,7 +83,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -91,7 +95,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -178,7 +182,7 @@ type Scattermapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -237,7 +241,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -261,7 +265,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `lat`, `lon` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -307,7 +311,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: color // Sets the color for each cluster step. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -331,7 +335,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -343,7 +347,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets the size for each cluster step. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -355,7 +359,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets how many points it takes to create a cluster or advance to the next cluster step. Use this in conjunction with arrays for `size` and / or `color`. If an integer, steps start at multiples of this number. If an array, each step extends from the given value until one less than the next value. - Step ArrayOK[*float64] `json:"step,omitempty"` + Step arrayok.Type[*float64] `json:"step,omitempty"` // Stepsrc // arrayOK: false @@ -371,7 +375,7 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -383,7 +387,7 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -395,7 +399,7 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -412,7 +416,7 @@ type ScattermapboxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattermapboxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattermapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -424,7 +428,7 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -436,7 +440,7 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -453,7 +457,7 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -899,7 +903,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker orientation from true North, in degrees clockwise. When using the *auto* default, no rotation would be applied in perspective views which is different from using a zero angle. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -941,7 +945,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -970,7 +974,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -994,7 +998,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1025,7 +1029,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: string // Sets the marker symbol. Full list: https://www.mapbox.com/maki-icons/ Note that the array `marker.color` and `marker.size` are only available for *circle* symbols. - Symbol ArrayOK[*string] `json:"symbol,omitempty"` + Symbol arrayok.Type[*string] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scatterpolar_gen.go b/generated/v2.29.1/graph_objects/scatterpolar_gen.go index 5e06795..aba712d 100644 --- a/generated/v2.29.1/graph_objects/scatterpolar_gen.go +++ b/generated/v2.29.1/graph_objects/scatterpolar_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatterpolar TraceType = "scatterpolar" func (trace *Scatterpolar) GetType() TraceType { @@ -69,7 +73,7 @@ type Scatterpolar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterpolarHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterpolarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -93,7 +97,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -105,7 +109,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -168,7 +172,7 @@ type Scatterpolar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -245,7 +249,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -257,7 +261,7 @@ type Scatterpolar struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterpolarTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterpolarTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -275,7 +279,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `r`, `theta` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -346,7 +350,7 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -358,7 +362,7 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -370,7 +374,7 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -387,7 +391,7 @@ type ScatterpolarHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterpolarHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterpolarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -399,7 +403,7 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -411,7 +415,7 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -428,7 +432,7 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -481,7 +485,7 @@ type ScatterpolarLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -899,7 +903,7 @@ type ScatterpolarMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -912,7 +916,7 @@ type ScatterpolarMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScatterpolarMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScatterpolarMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -958,7 +962,7 @@ type ScatterpolarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -988,7 +992,7 @@ type ScatterpolarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1004,7 +1008,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1053,7 +1057,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1098,7 +1102,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1122,7 +1126,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1153,7 +1157,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1166,7 +1170,7 @@ type ScatterpolarMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterpolarMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterpolarMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1244,7 +1248,7 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1256,7 +1260,7 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1268,7 +1272,7 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scatterpolargl_gen.go b/generated/v2.29.1/graph_objects/scatterpolargl_gen.go index e85aa75..ee8db71 100644 --- a/generated/v2.29.1/graph_objects/scatterpolargl_gen.go +++ b/generated/v2.29.1/graph_objects/scatterpolargl_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatterpolargl TraceType = "scatterpolargl" func (trace *Scatterpolargl) GetType() TraceType { @@ -63,7 +67,7 @@ type Scatterpolargl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterpolarglHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterpolarglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -80,7 +84,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -92,7 +96,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -155,7 +159,7 @@ type Scatterpolargl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -232,7 +236,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -244,7 +248,7 @@ type Scatterpolargl struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterpolarglTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterpolarglTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -262,7 +266,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `r`, `theta` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -333,7 +337,7 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -345,7 +349,7 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -357,7 +361,7 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -374,7 +378,7 @@ type ScatterpolarglHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterpolarglHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterpolarglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -386,7 +390,7 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -398,7 +402,7 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -415,7 +419,7 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -892,7 +896,7 @@ type ScatterpolarglMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -922,7 +926,7 @@ type ScatterpolarglMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -938,7 +942,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -980,7 +984,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1014,7 +1018,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1038,7 +1042,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1070,7 +1074,7 @@ type ScatterpolarglMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterpolarglMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterpolarglMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1148,7 +1152,7 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1160,7 +1164,7 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1172,7 +1176,7 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scattersmith_gen.go b/generated/v2.29.1/graph_objects/scattersmith_gen.go index 771e712..40ad3a3 100644 --- a/generated/v2.29.1/graph_objects/scattersmith_gen.go +++ b/generated/v2.29.1/graph_objects/scattersmith_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattersmith TraceType = "scattersmith" func (trace *Scattersmith) GetType() TraceType { @@ -57,7 +61,7 @@ type Scattersmith struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattersmithHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattersmithHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -81,7 +85,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -93,7 +97,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -168,7 +172,7 @@ type Scattersmith struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -239,7 +243,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -251,7 +255,7 @@ type Scattersmith struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScattersmithTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScattersmithTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -269,7 +273,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `real`, `imag` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -315,7 +319,7 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -327,7 +331,7 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -339,7 +343,7 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -356,7 +360,7 @@ type ScattersmithHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattersmithHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattersmithHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -368,7 +372,7 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -380,7 +384,7 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -397,7 +401,7 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -450,7 +454,7 @@ type ScattersmithLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -868,7 +872,7 @@ type ScattersmithMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -881,7 +885,7 @@ type ScattersmithMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScattersmithMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScattersmithMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -927,7 +931,7 @@ type ScattersmithMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -957,7 +961,7 @@ type ScattersmithMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -973,7 +977,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1022,7 +1026,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1067,7 +1071,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1091,7 +1095,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1122,7 +1126,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1135,7 +1139,7 @@ type ScattersmithMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScattersmithMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScattersmithMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1213,7 +1217,7 @@ type ScattersmithTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1225,7 +1229,7 @@ type ScattersmithTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1237,7 +1241,7 @@ type ScattersmithTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scatterternary_gen.go b/generated/v2.29.1/graph_objects/scatterternary_gen.go index 5059355..994812b 100644 --- a/generated/v2.29.1/graph_objects/scatterternary_gen.go +++ b/generated/v2.29.1/graph_objects/scatterternary_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatterternary TraceType = "scatterternary" func (trace *Scatterternary) GetType() TraceType { @@ -93,7 +97,7 @@ type Scatterternary struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterternaryHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterternaryHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -117,7 +121,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -129,7 +133,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Sets hover text elements associated with each (a,b,c) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b,c). To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -192,7 +196,7 @@ type Scatterternary struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -257,7 +261,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Sets text elements associated with each (a,b,c) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b,c). If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -269,7 +273,7 @@ type Scatterternary struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterternaryTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterternaryTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -287,7 +291,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `a`, `b`, `c` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -333,7 +337,7 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -345,7 +349,7 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -357,7 +361,7 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -374,7 +378,7 @@ type ScatterternaryHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterternaryHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterternaryHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -386,7 +390,7 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -398,7 +402,7 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -415,7 +419,7 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -468,7 +472,7 @@ type ScatterternaryLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -886,7 +890,7 @@ type ScatterternaryMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -899,7 +903,7 @@ type ScatterternaryMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScatterternaryMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScatterternaryMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -945,7 +949,7 @@ type ScatterternaryMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -975,7 +979,7 @@ type ScatterternaryMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -991,7 +995,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1040,7 +1044,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1085,7 +1089,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1109,7 +1113,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1140,7 +1144,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1153,7 +1157,7 @@ type ScatterternaryMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterternaryMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterternaryMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1231,7 +1235,7 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1243,7 +1247,7 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1255,7 +1259,7 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/splom_gen.go b/generated/v2.29.1/graph_objects/splom_gen.go index 4594bbd..9d78499 100644 --- a/generated/v2.29.1/graph_objects/splom_gen.go +++ b/generated/v2.29.1/graph_objects/splom_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSplom TraceType = "splom" func (trace *Splom) GetType() TraceType { @@ -43,7 +47,7 @@ type Splom struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*SplomHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*SplomHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -60,7 +64,7 @@ type Splom struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -72,7 +76,7 @@ type Splom struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -130,7 +134,7 @@ type Splom struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -188,7 +192,7 @@ type Splom struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair to appear on hover. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -268,7 +272,7 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -280,7 +284,7 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -292,7 +296,7 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -309,7 +313,7 @@ type SplomHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SplomHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SplomHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -321,7 +325,7 @@ type SplomHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -333,7 +337,7 @@ type SplomHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -350,7 +354,7 @@ type SplomHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -804,7 +808,7 @@ type SplomMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -834,7 +838,7 @@ type SplomMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -850,7 +854,7 @@ type SplomMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -892,7 +896,7 @@ type SplomMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -926,7 +930,7 @@ type SplomMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -950,7 +954,7 @@ type SplomMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -982,7 +986,7 @@ type SplomMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*SplomMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*SplomMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/streamtube_gen.go b/generated/v2.29.1/graph_objects/streamtube_gen.go index b5c9614..ba92a1c 100644 --- a/generated/v2.29.1/graph_objects/streamtube_gen.go +++ b/generated/v2.29.1/graph_objects/streamtube_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeStreamtube TraceType = "streamtube" func (trace *Streamtube) GetType() TraceType { @@ -79,7 +83,7 @@ type Streamtube struct { // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*StreamtubeHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*StreamtubeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -96,7 +100,7 @@ type Streamtube struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `tubex`, `tubey`, `tubez`, `tubeu`, `tubev`, `tubew`, `norm` and `divergence`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -171,7 +175,7 @@ type Streamtube struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -743,7 +747,7 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -755,7 +759,7 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -767,7 +771,7 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -784,7 +788,7 @@ type StreamtubeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*StreamtubeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*StreamtubeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -796,7 +800,7 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -808,7 +812,7 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -825,7 +829,7 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/sunburst_gen.go b/generated/v2.29.1/graph_objects/sunburst_gen.go index 5070ab9..83ebfdc 100644 --- a/generated/v2.29.1/graph_objects/sunburst_gen.go +++ b/generated/v2.29.1/graph_objects/sunburst_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSunburst TraceType = "sunburst" func (trace *Sunburst) GetType() TraceType { @@ -51,7 +55,7 @@ type Sunburst struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*SunburstHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*SunburstHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Sunburst struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -80,7 +84,7 @@ type Sunburst struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -173,7 +177,7 @@ type Sunburst struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -260,7 +264,7 @@ type Sunburst struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -341,7 +345,7 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -353,7 +357,7 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -365,7 +369,7 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -382,7 +386,7 @@ type SunburstHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SunburstHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SunburstHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -394,7 +398,7 @@ type SunburstHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -406,7 +410,7 @@ type SunburstHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -423,7 +427,7 @@ type SunburstHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -439,7 +443,7 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -451,7 +455,7 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -463,7 +467,7 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -897,7 +901,7 @@ type SunburstMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -909,7 +913,7 @@ type SunburstMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -925,7 +929,7 @@ type SunburstMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -937,7 +941,7 @@ type SunburstMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -963,7 +967,7 @@ type SunburstMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*SunburstMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*SunburstMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -975,7 +979,7 @@ type SunburstMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -987,7 +991,7 @@ type SunburstMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1088,7 +1092,7 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1100,7 +1104,7 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1112,7 +1116,7 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1154,7 +1158,7 @@ type SunburstTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1166,7 +1170,7 @@ type SunburstTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1178,7 +1182,7 @@ type SunburstTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/surface_gen.go b/generated/v2.29.1/graph_objects/surface_gen.go index f25d0c6..7de29eb 100644 --- a/generated/v2.29.1/graph_objects/surface_gen.go +++ b/generated/v2.29.1/graph_objects/surface_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSurface TraceType = "surface" func (trace *Surface) GetType() TraceType { @@ -96,7 +100,7 @@ type Surface struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*SurfaceHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*SurfaceHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -113,7 +117,7 @@ type Surface struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -125,7 +129,7 @@ type Surface struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -188,7 +192,7 @@ type Surface struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -259,7 +263,7 @@ type Surface struct { // arrayOK: true // type: string // Sets the text elements associated with each z value. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -1032,7 +1036,7 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1044,7 +1048,7 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1056,7 +1060,7 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1073,7 +1077,7 @@ type SurfaceHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SurfaceHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SurfaceHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -1085,7 +1089,7 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -1097,7 +1101,7 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -1114,7 +1118,7 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/table_gen.go b/generated/v2.29.1/graph_objects/table_gen.go index 10815de..3ec95d3 100644 --- a/generated/v2.29.1/graph_objects/table_gen.go +++ b/generated/v2.29.1/graph_objects/table_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeTable TraceType = "table" func (trace *Table) GetType() TraceType { @@ -36,7 +40,7 @@ type Table struct { // arrayOK: true // type: number // The width of columns expressed as a ratio. Columns fill the available width in proportion of their specified column widths. - Columnwidth ArrayOK[*float64] `json:"columnwidth,omitempty"` + Columnwidth arrayok.Type[*float64] `json:"columnwidth,omitempty"` // Columnwidthsrc // arrayOK: false @@ -71,7 +75,7 @@ type Table struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*TableHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*TableHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -123,7 +127,7 @@ type Table struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -169,7 +173,7 @@ type TableCellsFill struct { // arrayOK: true // type: color // Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -185,7 +189,7 @@ type TableCellsFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -197,7 +201,7 @@ type TableCellsFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -209,7 +213,7 @@ type TableCellsFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -225,7 +229,7 @@ type TableCellsLine struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -237,7 +241,7 @@ type TableCellsLine struct { // arrayOK: true // type: number // - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -254,7 +258,7 @@ type TableCells struct { // default: center // type: enumerated // Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. - Align ArrayOK[*TableCellsAlign] `json:"align,omitempty"` + Align arrayok.Type[*TableCellsAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -299,7 +303,7 @@ type TableCells struct { // arrayOK: true // type: string // Prefix for cell values. - Prefix ArrayOK[*string] `json:"prefix,omitempty"` + Prefix arrayok.Type[*string] `json:"prefix,omitempty"` // Prefixsrc // arrayOK: false @@ -311,7 +315,7 @@ type TableCells struct { // arrayOK: true // type: string // Suffix for cell values. - Suffix ArrayOK[*string] `json:"suffix,omitempty"` + Suffix arrayok.Type[*string] `json:"suffix,omitempty"` // Suffixsrc // arrayOK: false @@ -367,7 +371,7 @@ type TableHeaderFill struct { // arrayOK: true // type: color // Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -383,7 +387,7 @@ type TableHeaderFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -395,7 +399,7 @@ type TableHeaderFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -407,7 +411,7 @@ type TableHeaderFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -423,7 +427,7 @@ type TableHeaderLine struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -435,7 +439,7 @@ type TableHeaderLine struct { // arrayOK: true // type: number // - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -452,7 +456,7 @@ type TableHeader struct { // default: center // type: enumerated // Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. - Align ArrayOK[*TableHeaderAlign] `json:"align,omitempty"` + Align arrayok.Type[*TableHeaderAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -497,7 +501,7 @@ type TableHeader struct { // arrayOK: true // type: string // Prefix for cell values. - Prefix ArrayOK[*string] `json:"prefix,omitempty"` + Prefix arrayok.Type[*string] `json:"prefix,omitempty"` // Prefixsrc // arrayOK: false @@ -509,7 +513,7 @@ type TableHeader struct { // arrayOK: true // type: string // Suffix for cell values. - Suffix ArrayOK[*string] `json:"suffix,omitempty"` + Suffix arrayok.Type[*string] `json:"suffix,omitempty"` // Suffixsrc // arrayOK: false @@ -537,7 +541,7 @@ type TableHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -549,7 +553,7 @@ type TableHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -561,7 +565,7 @@ type TableHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -578,7 +582,7 @@ type TableHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*TableHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*TableHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -590,7 +594,7 @@ type TableHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -602,7 +606,7 @@ type TableHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -619,7 +623,7 @@ type TableHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/treemap_gen.go b/generated/v2.29.1/graph_objects/treemap_gen.go index e3e3e4b..49d0083 100644 --- a/generated/v2.29.1/graph_objects/treemap_gen.go +++ b/generated/v2.29.1/graph_objects/treemap_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeTreemap TraceType = "treemap" func (trace *Treemap) GetType() TraceType { @@ -51,7 +55,7 @@ type Treemap struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*TreemapHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*TreemapHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Treemap struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -80,7 +84,7 @@ type Treemap struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -161,7 +165,7 @@ type Treemap struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -254,7 +258,7 @@ type Treemap struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -340,7 +344,7 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -352,7 +356,7 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -364,7 +368,7 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -381,7 +385,7 @@ type TreemapHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*TreemapHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*TreemapHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -393,7 +397,7 @@ type TreemapHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -405,7 +409,7 @@ type TreemapHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -422,7 +426,7 @@ type TreemapHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -438,7 +442,7 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -450,7 +454,7 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -462,7 +466,7 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -886,7 +890,7 @@ type TreemapMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -898,7 +902,7 @@ type TreemapMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -942,7 +946,7 @@ type TreemapMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -954,7 +958,7 @@ type TreemapMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -980,7 +984,7 @@ type TreemapMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*TreemapMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*TreemapMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -992,7 +996,7 @@ type TreemapMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1004,7 +1008,7 @@ type TreemapMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1123,7 +1127,7 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1135,7 +1139,7 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1147,7 +1151,7 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1163,7 +1167,7 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1175,7 +1179,7 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1187,7 +1191,7 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1264,7 +1268,7 @@ type TreemapTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1276,7 +1280,7 @@ type TreemapTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1288,7 +1292,7 @@ type TreemapTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/violin_gen.go b/generated/v2.29.1/graph_objects/violin_gen.go index e9f4c43..b8a572f 100644 --- a/generated/v2.29.1/graph_objects/violin_gen.go +++ b/generated/v2.29.1/graph_objects/violin_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeViolin TraceType = "violin" func (trace *Violin) GetType() TraceType { @@ -55,7 +59,7 @@ type Violin struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ViolinHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ViolinHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -79,7 +83,7 @@ type Violin struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -91,7 +95,7 @@ type Violin struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -165,7 +169,7 @@ type Violin struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -277,7 +281,7 @@ type Violin struct { // arrayOK: true // type: string // Sets the text elements associated with each sample value. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -432,7 +436,7 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -444,7 +448,7 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -456,7 +460,7 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -473,7 +477,7 @@ type ViolinHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ViolinHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ViolinHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -485,7 +489,7 @@ type ViolinHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -497,7 +501,7 @@ type ViolinHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -514,7 +518,7 @@ type ViolinHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/volume_gen.go b/generated/v2.29.1/graph_objects/volume_gen.go index 170023c..b6c11e7 100644 --- a/generated/v2.29.1/graph_objects/volume_gen.go +++ b/generated/v2.29.1/graph_objects/volume_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeVolume TraceType = "volume" func (trace *Volume) GetType() TraceType { @@ -95,7 +99,7 @@ type Volume struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*VolumeHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*VolumeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -112,7 +116,7 @@ type Volume struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -124,7 +128,7 @@ type Volume struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -199,7 +203,7 @@ type Volume struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -273,7 +277,7 @@ type Volume struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -840,7 +844,7 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -852,7 +856,7 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -864,7 +868,7 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -881,7 +885,7 @@ type VolumeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*VolumeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*VolumeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -893,7 +897,7 @@ type VolumeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -905,7 +909,7 @@ type VolumeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -922,7 +926,7 @@ type VolumeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/waterfall_gen.go b/generated/v2.29.1/graph_objects/waterfall_gen.go index 14def67..d0c9851 100644 --- a/generated/v2.29.1/graph_objects/waterfall_gen.go +++ b/generated/v2.29.1/graph_objects/waterfall_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeWaterfall TraceType = "waterfall" func (trace *Waterfall) GetType() TraceType { @@ -79,7 +83,7 @@ type Waterfall struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*WaterfallHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*WaterfallHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -96,7 +100,7 @@ type Waterfall struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `initial`, `delta` and `final`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -108,7 +112,7 @@ type Waterfall struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -190,7 +194,7 @@ type Waterfall struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -208,7 +212,7 @@ type Waterfall struct { // arrayOK: true // type: number // Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead. - Offset ArrayOK[*float64] `json:"offset,omitempty"` + Offset arrayok.Type[*float64] `json:"offset,omitempty"` // Offsetgroup // arrayOK: false @@ -261,7 +265,7 @@ type Waterfall struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -286,7 +290,7 @@ type Waterfall struct { // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition ArrayOK[*WaterfallTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*WaterfallTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -304,7 +308,7 @@ type Waterfall struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `initial`, `delta`, `final` and `label`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -346,7 +350,7 @@ type Waterfall struct { // arrayOK: true // type: number // Sets the bar width (in position axis units). - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -544,7 +548,7 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -556,7 +560,7 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -568,7 +572,7 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -585,7 +589,7 @@ type WaterfallHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*WaterfallHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*WaterfallHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -597,7 +601,7 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -609,7 +613,7 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -626,7 +630,7 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -682,7 +686,7 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -694,7 +698,7 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -706,7 +710,7 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -759,7 +763,7 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -771,7 +775,7 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -783,7 +787,7 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -815,7 +819,7 @@ type WaterfallTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -827,7 +831,7 @@ type WaterfallTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -839,7 +843,7 @@ type WaterfallTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/bar_gen.go b/generated/v2.31.1/graph_objects/bar_gen.go index d7cdcca..0732527 100644 --- a/generated/v2.31.1/graph_objects/bar_gen.go +++ b/generated/v2.31.1/graph_objects/bar_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeBar TraceType = "bar" func (trace *Bar) GetType() TraceType { @@ -25,7 +29,7 @@ type Bar struct { // arrayOK: true // type: any // Sets where the bar base is drawn (in position axis units). In *stack* or *relative* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead. - Base ArrayOK[*interface{}] `json:"base,omitempty"` + Base arrayok.Type[*interface{}] `json:"base,omitempty"` // Basesrc // arrayOK: false @@ -85,7 +89,7 @@ type Bar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*BarHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*BarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -102,7 +106,7 @@ type Bar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -114,7 +118,7 @@ type Bar struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -184,7 +188,7 @@ type Bar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -202,7 +206,7 @@ type Bar struct { // arrayOK: true // type: number // Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead. - Offset ArrayOK[*float64] `json:"offset,omitempty"` + Offset arrayok.Type[*float64] `json:"offset,omitempty"` // Offsetgroup // arrayOK: false @@ -260,7 +264,7 @@ type Bar struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -278,7 +282,7 @@ type Bar struct { // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition ArrayOK[*BarTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*BarTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -296,7 +300,7 @@ type Bar struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `value` and `label`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -338,7 +342,7 @@ type Bar struct { // arrayOK: true // type: number // Sets the bar width (in position axis units). - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -656,7 +660,7 @@ type BarHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -668,7 +672,7 @@ type BarHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -680,7 +684,7 @@ type BarHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -697,7 +701,7 @@ type BarHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*BarHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*BarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -709,7 +713,7 @@ type BarHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -721,7 +725,7 @@ type BarHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -738,7 +742,7 @@ type BarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -754,7 +758,7 @@ type BarInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -766,7 +770,7 @@ type BarInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -778,7 +782,7 @@ type BarInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1232,7 +1236,7 @@ type BarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1262,7 +1266,7 @@ type BarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1278,7 +1282,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -1290,7 +1294,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -1316,7 +1320,7 @@ type BarMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*BarMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*BarMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -1328,7 +1332,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1340,7 +1344,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1386,7 +1390,7 @@ type BarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1426,7 +1430,7 @@ type BarMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1459,7 +1463,7 @@ type BarOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1471,7 +1475,7 @@ type BarOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1483,7 +1487,7 @@ type BarOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1555,7 +1559,7 @@ type BarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1567,7 +1571,7 @@ type BarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1579,7 +1583,7 @@ type BarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/barpolar_gen.go b/generated/v2.31.1/graph_objects/barpolar_gen.go index 602b7d4..be5416b 100644 --- a/generated/v2.31.1/graph_objects/barpolar_gen.go +++ b/generated/v2.31.1/graph_objects/barpolar_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeBarpolar TraceType = "barpolar" func (trace *Barpolar) GetType() TraceType { @@ -19,7 +23,7 @@ type Barpolar struct { // arrayOK: true // type: any // Sets where the bar base is drawn (in radial axis units). In *stack* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead. - Base ArrayOK[*interface{}] `json:"base,omitempty"` + Base arrayok.Type[*interface{}] `json:"base,omitempty"` // Basesrc // arrayOK: false @@ -56,7 +60,7 @@ type Barpolar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*BarpolarHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*BarpolarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -73,7 +77,7 @@ type Barpolar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -85,7 +89,7 @@ type Barpolar struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -143,7 +147,7 @@ type Barpolar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -161,7 +165,7 @@ type Barpolar struct { // arrayOK: true // type: number // Shifts the angular position where the bar is drawn (in *thetatunit* units). - Offset ArrayOK[*float64] `json:"offset,omitempty"` + Offset arrayok.Type[*float64] `json:"offset,omitempty"` // Offsetsrc // arrayOK: false @@ -225,7 +229,7 @@ type Barpolar struct { // arrayOK: true // type: string // Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -292,7 +296,7 @@ type Barpolar struct { // arrayOK: true // type: number // Sets the bar angular width (in *thetaunit* units). - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -308,7 +312,7 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -320,7 +324,7 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -332,7 +336,7 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -349,7 +353,7 @@ type BarpolarHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*BarpolarHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*BarpolarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -361,7 +365,7 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -373,7 +377,7 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -390,7 +394,7 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -844,7 +848,7 @@ type BarpolarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -874,7 +878,7 @@ type BarpolarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -890,7 +894,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -902,7 +906,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -928,7 +932,7 @@ type BarpolarMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*BarpolarMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*BarpolarMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -940,7 +944,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -952,7 +956,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -998,7 +1002,7 @@ type BarpolarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1032,7 +1036,7 @@ type BarpolarMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/box_gen.go b/generated/v2.31.1/graph_objects/box_gen.go index a7c08ae..9584500 100644 --- a/generated/v2.31.1/graph_objects/box_gen.go +++ b/generated/v2.31.1/graph_objects/box_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeBox TraceType = "box" func (trace *Box) GetType() TraceType { @@ -70,7 +74,7 @@ type Box struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*BoxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*BoxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -94,7 +98,7 @@ type Box struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -106,7 +110,7 @@ type Box struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -211,7 +215,7 @@ type Box struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -362,7 +366,7 @@ type Box struct { // arrayOK: true // type: string // Sets the text elements associated with each sample value. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -550,7 +554,7 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -562,7 +566,7 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -574,7 +578,7 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -591,7 +595,7 @@ type BoxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*BoxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*BoxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -603,7 +607,7 @@ type BoxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -615,7 +619,7 @@ type BoxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -632,7 +636,7 @@ type BoxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/candlestick_gen.go b/generated/v2.31.1/graph_objects/candlestick_gen.go index ba6e7a6..83e38d0 100644 --- a/generated/v2.31.1/graph_objects/candlestick_gen.go +++ b/generated/v2.31.1/graph_objects/candlestick_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeCandlestick TraceType = "candlestick" func (trace *Candlestick) GetType() TraceType { @@ -61,7 +65,7 @@ type Candlestick struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*CandlestickHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*CandlestickHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -78,7 +82,7 @@ type Candlestick struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -153,7 +157,7 @@ type Candlestick struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -206,7 +210,7 @@ type Candlestick struct { // arrayOK: true // type: string // Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace's sample points. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -352,7 +356,7 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -364,7 +368,7 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -376,7 +380,7 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -393,7 +397,7 @@ type CandlestickHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*CandlestickHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*CandlestickHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -405,7 +409,7 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -417,7 +421,7 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -434,7 +438,7 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/carpet_gen.go b/generated/v2.31.1/graph_objects/carpet_gen.go index 637930d..0ccef3e 100644 --- a/generated/v2.31.1/graph_objects/carpet_gen.go +++ b/generated/v2.31.1/graph_objects/carpet_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeCarpet TraceType = "carpet" func (trace *Carpet) GetType() TraceType { @@ -147,7 +151,7 @@ type Carpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/choropleth_gen.go b/generated/v2.31.1/graph_objects/choropleth_gen.go index 0b560e4..7eafd32 100644 --- a/generated/v2.31.1/graph_objects/choropleth_gen.go +++ b/generated/v2.31.1/graph_objects/choropleth_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeChoropleth TraceType = "choropleth" func (trace *Choropleth) GetType() TraceType { @@ -73,7 +77,7 @@ type Choropleth struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ChoroplethHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ChoroplethHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -90,7 +94,7 @@ type Choropleth struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -102,7 +106,7 @@ type Choropleth struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -179,7 +183,7 @@ type Choropleth struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -231,7 +235,7 @@ type Choropleth struct { // arrayOK: true // type: string // Sets the text elements associated with each location. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -684,7 +688,7 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -696,7 +700,7 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -708,7 +712,7 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -725,7 +729,7 @@ type ChoroplethHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ChoroplethHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ChoroplethHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -737,7 +741,7 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -749,7 +753,7 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -766,7 +770,7 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -819,7 +823,7 @@ type ChoroplethMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -831,7 +835,7 @@ type ChoroplethMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -852,7 +856,7 @@ type ChoroplethMarker struct { // arrayOK: true // type: number // Sets the opacity of the locations. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/choroplethmapbox_gen.go b/generated/v2.31.1/graph_objects/choroplethmapbox_gen.go index 1736558..46bb328 100644 --- a/generated/v2.31.1/graph_objects/choroplethmapbox_gen.go +++ b/generated/v2.31.1/graph_objects/choroplethmapbox_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeChoroplethmapbox TraceType = "choroplethmapbox" func (trace *Choroplethmapbox) GetType() TraceType { @@ -73,7 +77,7 @@ type Choroplethmapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ChoroplethmapboxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ChoroplethmapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -90,7 +94,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `properties` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -102,7 +106,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -172,7 +176,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -230,7 +234,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Sets the text elements associated with each location. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -683,7 +687,7 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -695,7 +699,7 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -707,7 +711,7 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -724,7 +728,7 @@ type ChoroplethmapboxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ChoroplethmapboxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ChoroplethmapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -736,7 +740,7 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -748,7 +752,7 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -765,7 +769,7 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -818,7 +822,7 @@ type ChoroplethmapboxMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -830,7 +834,7 @@ type ChoroplethmapboxMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -851,7 +855,7 @@ type ChoroplethmapboxMarker struct { // arrayOK: true // type: number // Sets the opacity of the locations. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/cone_gen.go b/generated/v2.31.1/graph_objects/cone_gen.go index 349fa4e..77ede3b 100644 --- a/generated/v2.31.1/graph_objects/cone_gen.go +++ b/generated/v2.31.1/graph_objects/cone_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeCone TraceType = "cone" func (trace *Cone) GetType() TraceType { @@ -86,7 +90,7 @@ type Cone struct { // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ConeHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ConeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -103,7 +107,7 @@ type Cone struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `norm` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -115,7 +119,7 @@ type Cone struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -178,7 +182,7 @@ type Cone struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -244,7 +248,7 @@ type Cone struct { // arrayOK: true // type: string // Sets the text elements associated with the cones. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -758,7 +762,7 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -770,7 +774,7 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -782,7 +786,7 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -799,7 +803,7 @@ type ConeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ConeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ConeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -811,7 +815,7 @@ type ConeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -823,7 +827,7 @@ type ConeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -840,7 +844,7 @@ type ConeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/contour_gen.go b/generated/v2.31.1/graph_objects/contour_gen.go index e5a4f3a..893a217 100644 --- a/generated/v2.31.1/graph_objects/contour_gen.go +++ b/generated/v2.31.1/graph_objects/contour_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeContour TraceType = "contour" func (trace *Contour) GetType() TraceType { @@ -90,7 +94,7 @@ type Contour struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ContourHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ContourHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -113,7 +117,7 @@ type Contour struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -183,7 +187,7 @@ type Contour struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -933,7 +937,7 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -945,7 +949,7 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -957,7 +961,7 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -974,7 +978,7 @@ type ContourHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ContourHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ContourHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -986,7 +990,7 @@ type ContourHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -998,7 +1002,7 @@ type ContourHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -1015,7 +1019,7 @@ type ContourHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/contourcarpet_gen.go b/generated/v2.31.1/graph_objects/contourcarpet_gen.go index f0ab0e4..f45d182 100644 --- a/generated/v2.31.1/graph_objects/contourcarpet_gen.go +++ b/generated/v2.31.1/graph_objects/contourcarpet_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeContourcarpet TraceType = "contourcarpet" func (trace *Contourcarpet) GetType() TraceType { @@ -197,7 +201,7 @@ type Contourcarpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/densitymapbox_gen.go b/generated/v2.31.1/graph_objects/densitymapbox_gen.go index 38f6b11..ec0b504 100644 --- a/generated/v2.31.1/graph_objects/densitymapbox_gen.go +++ b/generated/v2.31.1/graph_objects/densitymapbox_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeDensitymapbox TraceType = "densitymapbox" func (trace *Densitymapbox) GetType() TraceType { @@ -61,7 +65,7 @@ type Densitymapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*DensitymapboxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*DensitymapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -78,7 +82,7 @@ type Densitymapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -90,7 +94,7 @@ type Densitymapbox struct { // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -167,7 +171,7 @@ type Densitymapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -191,7 +195,7 @@ type Densitymapbox struct { // arrayOK: true // type: number // Sets the radius of influence of one `lon` / `lat` point in pixels. Increasing the value makes the densitymapbox trace smoother, but less detailed. - Radius ArrayOK[*float64] `json:"radius,omitempty"` + Radius arrayok.Type[*float64] `json:"radius,omitempty"` // Radiussrc // arrayOK: false @@ -232,7 +236,7 @@ type Densitymapbox struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -680,7 +684,7 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -692,7 +696,7 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -704,7 +708,7 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -721,7 +725,7 @@ type DensitymapboxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*DensitymapboxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*DensitymapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -733,7 +737,7 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -745,7 +749,7 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -762,7 +766,7 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/funnel_gen.go b/generated/v2.31.1/graph_objects/funnel_gen.go index d988308..d044602 100644 --- a/generated/v2.31.1/graph_objects/funnel_gen.go +++ b/generated/v2.31.1/graph_objects/funnel_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeFunnel TraceType = "funnel" func (trace *Funnel) GetType() TraceType { @@ -68,7 +72,7 @@ type Funnel struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*FunnelHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*FunnelHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -85,7 +89,7 @@ type Funnel struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `percentInitial`, `percentPrevious` and `percentTotal`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -97,7 +101,7 @@ type Funnel struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -167,7 +171,7 @@ type Funnel struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -232,7 +236,7 @@ type Funnel struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -257,7 +261,7 @@ type Funnel struct { // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition ArrayOK[*FunnelTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*FunnelTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -275,7 +279,7 @@ type Funnel struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `percentInitial`, `percentPrevious`, `percentTotal`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -469,7 +473,7 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -481,7 +485,7 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -493,7 +497,7 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -510,7 +514,7 @@ type FunnelHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*FunnelHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*FunnelHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -522,7 +526,7 @@ type FunnelHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -534,7 +538,7 @@ type FunnelHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -551,7 +555,7 @@ type FunnelHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -567,7 +571,7 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -579,7 +583,7 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -591,7 +595,7 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1045,7 +1049,7 @@ type FunnelMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1075,7 +1079,7 @@ type FunnelMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1121,7 +1125,7 @@ type FunnelMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1155,7 +1159,7 @@ type FunnelMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1183,7 +1187,7 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1195,7 +1199,7 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1207,7 +1211,7 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1239,7 +1243,7 @@ type FunnelTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1251,7 +1255,7 @@ type FunnelTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1263,7 +1267,7 @@ type FunnelTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/funnelarea_gen.go b/generated/v2.31.1/graph_objects/funnelarea_gen.go index 4fd348b..c08cad7 100644 --- a/generated/v2.31.1/graph_objects/funnelarea_gen.go +++ b/generated/v2.31.1/graph_objects/funnelarea_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeFunnelarea TraceType = "funnelarea" func (trace *Funnelarea) GetType() TraceType { @@ -55,7 +59,7 @@ type Funnelarea struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*FunnelareaHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*FunnelareaHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -72,7 +76,7 @@ type Funnelarea struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `text` and `percent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -84,7 +88,7 @@ type Funnelarea struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -165,7 +169,7 @@ type Funnelarea struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -225,7 +229,7 @@ type Funnelarea struct { // default: inside // type: enumerated // Specifies the location of the `textinfo`. - Textposition ArrayOK[*FunnelareaTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*FunnelareaTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -243,7 +247,7 @@ type Funnelarea struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `text` and `percent`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -329,7 +333,7 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -341,7 +345,7 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -353,7 +357,7 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -370,7 +374,7 @@ type FunnelareaHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*FunnelareaHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*FunnelareaHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -382,7 +386,7 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -394,7 +398,7 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -411,7 +415,7 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -427,7 +431,7 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -439,7 +443,7 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -451,7 +455,7 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -504,7 +508,7 @@ type FunnelareaMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -516,7 +520,7 @@ type FunnelareaMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -532,7 +536,7 @@ type FunnelareaMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -544,7 +548,7 @@ type FunnelareaMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -570,7 +574,7 @@ type FunnelareaMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*FunnelareaMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*FunnelareaMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -582,7 +586,7 @@ type FunnelareaMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -594,7 +598,7 @@ type FunnelareaMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -652,7 +656,7 @@ type FunnelareaTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -664,7 +668,7 @@ type FunnelareaTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -676,7 +680,7 @@ type FunnelareaTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -692,7 +696,7 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -704,7 +708,7 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -716,7 +720,7 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/heatmap_gen.go b/generated/v2.31.1/graph_objects/heatmap_gen.go index 9e1687c..49971e8 100644 --- a/generated/v2.31.1/graph_objects/heatmap_gen.go +++ b/generated/v2.31.1/graph_objects/heatmap_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHeatmap TraceType = "heatmap" func (trace *Heatmap) GetType() TraceType { @@ -73,7 +77,7 @@ type Heatmap struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*HeatmapHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*HeatmapHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -96,7 +100,7 @@ type Heatmap struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -161,7 +165,7 @@ type Heatmap struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -830,7 +834,7 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -842,7 +846,7 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -854,7 +858,7 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -871,7 +875,7 @@ type HeatmapHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*HeatmapHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*HeatmapHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -883,7 +887,7 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -895,7 +899,7 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -912,7 +916,7 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/heatmapgl_gen.go b/generated/v2.31.1/graph_objects/heatmapgl_gen.go index fbe68f3..f2ce8ae 100644 --- a/generated/v2.31.1/graph_objects/heatmapgl_gen.go +++ b/generated/v2.31.1/graph_objects/heatmapgl_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHeatmapgl TraceType = "heatmapgl" func (trace *Heatmapgl) GetType() TraceType { @@ -67,7 +71,7 @@ type Heatmapgl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*HeatmapglHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*HeatmapglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -119,7 +123,7 @@ type Heatmapgl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -683,7 +687,7 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -695,7 +699,7 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -707,7 +711,7 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -724,7 +728,7 @@ type HeatmapglHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*HeatmapglHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*HeatmapglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -736,7 +740,7 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -748,7 +752,7 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -765,7 +769,7 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/histogram2d_gen.go b/generated/v2.31.1/graph_objects/histogram2d_gen.go index f6d6fa5..99a45bc 100644 --- a/generated/v2.31.1/graph_objects/histogram2d_gen.go +++ b/generated/v2.31.1/graph_objects/histogram2d_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHistogram2d TraceType = "histogram2d" func (trace *Histogram2d) GetType() TraceType { @@ -87,7 +91,7 @@ type Histogram2d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Histogram2dHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Histogram2dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -104,7 +108,7 @@ type Histogram2d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `z` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -162,7 +166,7 @@ type Histogram2d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -777,7 +781,7 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -789,7 +793,7 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -801,7 +805,7 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -818,7 +822,7 @@ type Histogram2dHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Histogram2dHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Histogram2dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -830,7 +834,7 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -842,7 +846,7 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -859,7 +863,7 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/histogram2dcontour_gen.go b/generated/v2.31.1/graph_objects/histogram2dcontour_gen.go index 5bd181d..0b5428c 100644 --- a/generated/v2.31.1/graph_objects/histogram2dcontour_gen.go +++ b/generated/v2.31.1/graph_objects/histogram2dcontour_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHistogram2dcontour TraceType = "histogram2dcontour" func (trace *Histogram2dcontour) GetType() TraceType { @@ -98,7 +102,7 @@ type Histogram2dcontour struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Histogram2dcontourHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Histogram2dcontourHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -115,7 +119,7 @@ type Histogram2dcontour struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `z` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -178,7 +182,7 @@ type Histogram2dcontour struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -874,7 +878,7 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -886,7 +890,7 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -898,7 +902,7 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -915,7 +919,7 @@ type Histogram2dcontourHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Histogram2dcontourHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Histogram2dcontourHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -927,7 +931,7 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -939,7 +943,7 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -956,7 +960,7 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/histogram_gen.go b/generated/v2.31.1/graph_objects/histogram_gen.go index 09dafb5..6cb958b 100644 --- a/generated/v2.31.1/graph_objects/histogram_gen.go +++ b/generated/v2.31.1/graph_objects/histogram_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHistogram TraceType = "histogram" func (trace *Histogram) GetType() TraceType { @@ -98,7 +102,7 @@ type Histogram struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*HistogramHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*HistogramHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -115,7 +119,7 @@ type Histogram struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `binNumber` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -127,7 +131,7 @@ type Histogram struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -197,7 +201,7 @@ type Histogram struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -273,7 +277,7 @@ type Histogram struct { // arrayOK: true // type: string // Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -629,7 +633,7 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -641,7 +645,7 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -653,7 +657,7 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -670,7 +674,7 @@ type HistogramHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*HistogramHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*HistogramHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -682,7 +686,7 @@ type HistogramHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -694,7 +698,7 @@ type HistogramHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -711,7 +715,7 @@ type HistogramHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -1187,7 +1191,7 @@ type HistogramMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1217,7 +1221,7 @@ type HistogramMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1233,7 +1237,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -1245,7 +1249,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -1271,7 +1275,7 @@ type HistogramMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*HistogramMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*HistogramMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -1283,7 +1287,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1295,7 +1299,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1341,7 +1345,7 @@ type HistogramMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1381,7 +1385,7 @@ type HistogramMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/icicle_gen.go b/generated/v2.31.1/graph_objects/icicle_gen.go index 62baa30..29ef8da 100644 --- a/generated/v2.31.1/graph_objects/icicle_gen.go +++ b/generated/v2.31.1/graph_objects/icicle_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeIcicle TraceType = "icicle" func (trace *Icicle) GetType() TraceType { @@ -51,7 +55,7 @@ type Icicle struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*IcicleHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*IcicleHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Icicle struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -80,7 +84,7 @@ type Icicle struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -166,7 +170,7 @@ type Icicle struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -259,7 +263,7 @@ type Icicle struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -345,7 +349,7 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -357,7 +361,7 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -369,7 +373,7 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -386,7 +390,7 @@ type IcicleHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*IcicleHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*IcicleHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -398,7 +402,7 @@ type IcicleHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -410,7 +414,7 @@ type IcicleHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -427,7 +431,7 @@ type IcicleHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -443,7 +447,7 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -455,7 +459,7 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -467,7 +471,7 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -901,7 +905,7 @@ type IcicleMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -913,7 +917,7 @@ type IcicleMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -929,7 +933,7 @@ type IcicleMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -941,7 +945,7 @@ type IcicleMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -967,7 +971,7 @@ type IcicleMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*IcicleMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*IcicleMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -979,7 +983,7 @@ type IcicleMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -991,7 +995,7 @@ type IcicleMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1092,7 +1096,7 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1104,7 +1108,7 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1116,7 +1120,7 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1132,7 +1136,7 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1144,7 +1148,7 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1156,7 +1160,7 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1233,7 +1237,7 @@ type IcicleTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1245,7 +1249,7 @@ type IcicleTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1257,7 +1261,7 @@ type IcicleTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/image_gen.go b/generated/v2.31.1/graph_objects/image_gen.go index d5d8c64..93296a0 100644 --- a/generated/v2.31.1/graph_objects/image_gen.go +++ b/generated/v2.31.1/graph_objects/image_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeImage TraceType = "image" func (trace *Image) GetType() TraceType { @@ -51,7 +55,7 @@ type Image struct { // default: x+y+z+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ImageHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ImageHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Image struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `z`, `color` and `colormodel`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -127,7 +131,7 @@ type Image struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -258,7 +262,7 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -270,7 +274,7 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -282,7 +286,7 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -299,7 +303,7 @@ type ImageHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ImageHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ImageHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -311,7 +315,7 @@ type ImageHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -323,7 +327,7 @@ type ImageHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -340,7 +344,7 @@ type ImageHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/indicator_gen.go b/generated/v2.31.1/graph_objects/indicator_gen.go index 053bf6e..c08f169 100644 --- a/generated/v2.31.1/graph_objects/indicator_gen.go +++ b/generated/v2.31.1/graph_objects/indicator_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeIndicator TraceType = "indicator" func (trace *Indicator) GetType() TraceType { @@ -88,7 +92,7 @@ type Indicator struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/isosurface_gen.go b/generated/v2.31.1/graph_objects/isosurface_gen.go index 3ce9be8..21ff0df 100644 --- a/generated/v2.31.1/graph_objects/isosurface_gen.go +++ b/generated/v2.31.1/graph_objects/isosurface_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeIsosurface TraceType = "isosurface" func (trace *Isosurface) GetType() TraceType { @@ -95,7 +99,7 @@ type Isosurface struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*IsosurfaceHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*IsosurfaceHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -112,7 +116,7 @@ type Isosurface struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -124,7 +128,7 @@ type Isosurface struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -199,7 +203,7 @@ type Isosurface struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -267,7 +271,7 @@ type Isosurface struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -834,7 +838,7 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -846,7 +850,7 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -858,7 +862,7 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -875,7 +879,7 @@ type IsosurfaceHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*IsosurfaceHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*IsosurfaceHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -887,7 +891,7 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -899,7 +903,7 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -916,7 +920,7 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/layout_gen.go b/generated/v2.31.1/graph_objects/layout_gen.go index a0e48ca..4cc1060 100644 --- a/generated/v2.31.1/graph_objects/layout_gen.go +++ b/generated/v2.31.1/graph_objects/layout_gen.go @@ -1,6 +1,12 @@ package grob -// Code generated by go-plotly/generator. DO NOT EDIT.// Layout Plot layout options +// Code generated by go-plotly/generator. DO NOT EDIT. + +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + +// Layout Plot layout options type Layout struct { // Activeselection @@ -288,7 +294,7 @@ type Layout struct { // arrayOK: true // type: any // Assigns extra meta information that can be used in various `text` attributes. Attributes such as the graph, axis and colorbar `title.text`, annotation `text` `trace.name` in legend items, `rangeselector`, `updatemenus` and `sliders` `label` text all support `meta`. One can access `meta` fields using template strings: `%{meta[i]}` where `i` is the index of the `meta` item in question. `meta` can also be an object for example `{key: value}` which can be accessed %{meta[key]}. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -2080,7 +2086,7 @@ type LayoutModebar struct { // arrayOK: true // type: string // Determines which predefined modebar buttons to add. Please note that these buttons will only be shown if they are compatible with all trace types used in a graph. Similar to `config.modeBarButtonsToAdd` option. This may include *v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*, *drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect*, *eraseshape*. - Add ArrayOK[*string] `json:"add,omitempty"` + Add arrayok.Type[*string] `json:"add,omitempty"` // Addsrc // arrayOK: false @@ -2111,7 +2117,7 @@ type LayoutModebar struct { // arrayOK: true // type: string // Determines which predefined modebar buttons to remove. Similar to `config.modeBarButtonsToRemove` option. This may include *autoScale2d*, *autoscale*, *editInChartStudio*, *editinchartstudio*, *hoverCompareCartesian*, *hovercompare*, *lasso*, *lasso2d*, *orbitRotation*, *orbitrotation*, *pan*, *pan2d*, *pan3d*, *reset*, *resetCameraDefault3d*, *resetCameraLastSave3d*, *resetGeo*, *resetSankeyGroup*, *resetScale2d*, *resetViewMapbox*, *resetViews*, *resetcameradefault*, *resetcameralastsave*, *resetsankeygroup*, *resetscale*, *resetview*, *resetviews*, *select*, *select2d*, *sendDataToCloud*, *senddatatocloud*, *tableRotation*, *tablerotation*, *toImage*, *toggleHover*, *toggleSpikelines*, *togglehover*, *togglespikelines*, *toimage*, *zoom*, *zoom2d*, *zoom3d*, *zoomIn2d*, *zoomInGeo*, *zoomInMapbox*, *zoomOut2d*, *zoomOutGeo*, *zoomOutMapbox*, *zoomin*, *zoomout*. - Remove ArrayOK[*string] `json:"remove,omitempty"` + Remove arrayok.Type[*string] `json:"remove,omitempty"` // Removesrc // arrayOK: false @@ -2766,7 +2772,7 @@ type LayoutPolarRadialaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false @@ -3411,7 +3417,7 @@ type LayoutSceneXaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false @@ -3878,7 +3884,7 @@ type LayoutSceneYaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false @@ -4345,7 +4351,7 @@ type LayoutSceneZaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false @@ -6460,7 +6466,7 @@ type LayoutXaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false @@ -7364,7 +7370,7 @@ type LayoutYaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/mesh3d_gen.go b/generated/v2.31.1/graph_objects/mesh3d_gen.go index a3459df..0509104 100644 --- a/generated/v2.31.1/graph_objects/mesh3d_gen.go +++ b/generated/v2.31.1/graph_objects/mesh3d_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeMesh3d TraceType = "mesh3d" func (trace *Mesh3d) GetType() TraceType { @@ -121,7 +125,7 @@ type Mesh3d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Mesh3dHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Mesh3dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -138,7 +142,7 @@ type Mesh3d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -150,7 +154,7 @@ type Mesh3d struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -268,7 +272,7 @@ type Mesh3d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -321,7 +325,7 @@ type Mesh3d struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -836,7 +840,7 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -848,7 +852,7 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -860,7 +864,7 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -877,7 +881,7 @@ type Mesh3dHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Mesh3dHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Mesh3dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -889,7 +893,7 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -901,7 +905,7 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -918,7 +922,7 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/ohlc_gen.go b/generated/v2.31.1/graph_objects/ohlc_gen.go index 2a61fb6..b7ee81f 100644 --- a/generated/v2.31.1/graph_objects/ohlc_gen.go +++ b/generated/v2.31.1/graph_objects/ohlc_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeOhlc TraceType = "ohlc" func (trace *Ohlc) GetType() TraceType { @@ -61,7 +65,7 @@ type Ohlc struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*OhlcHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*OhlcHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -78,7 +82,7 @@ type Ohlc struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -153,7 +157,7 @@ type Ohlc struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -206,7 +210,7 @@ type Ohlc struct { // arrayOK: true // type: string // Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace's sample points. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -352,7 +356,7 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -364,7 +368,7 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -376,7 +380,7 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -393,7 +397,7 @@ type OhlcHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*OhlcHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*OhlcHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -405,7 +409,7 @@ type OhlcHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -417,7 +421,7 @@ type OhlcHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -434,7 +438,7 @@ type OhlcHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/parcats_gen.go b/generated/v2.31.1/graph_objects/parcats_gen.go index 86f313e..8119335 100644 --- a/generated/v2.31.1/graph_objects/parcats_gen.go +++ b/generated/v2.31.1/graph_objects/parcats_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeParcats TraceType = "parcats" func (trace *Parcats) GetType() TraceType { @@ -32,7 +36,7 @@ type Parcats struct { // arrayOK: true // type: number // The number of observations represented by each state. Defaults to 1 so that each state represents one observation - Counts ArrayOK[*float64] `json:"counts,omitempty"` + Counts arrayok.Type[*float64] `json:"counts,omitempty"` // Countssrc // arrayOK: false @@ -96,7 +100,7 @@ type Parcats struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -648,7 +652,7 @@ type ParcatsLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/parcoords_gen.go b/generated/v2.31.1/graph_objects/parcoords_gen.go index abf7c48..577a3af 100644 --- a/generated/v2.31.1/graph_objects/parcoords_gen.go +++ b/generated/v2.31.1/graph_objects/parcoords_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeParcoords TraceType = "parcoords" func (trace *Parcoords) GetType() TraceType { @@ -100,7 +104,7 @@ type Parcoords struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -655,7 +659,7 @@ type ParcoordsLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/pie_gen.go b/generated/v2.31.1/graph_objects/pie_gen.go index 93021e5..028b0c9 100644 --- a/generated/v2.31.1/graph_objects/pie_gen.go +++ b/generated/v2.31.1/graph_objects/pie_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypePie TraceType = "pie" func (trace *Pie) GetType() TraceType { @@ -62,7 +66,7 @@ type Pie struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*PieHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*PieHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -79,7 +83,7 @@ type Pie struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `percent` and `text`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -91,7 +95,7 @@ type Pie struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -179,7 +183,7 @@ type Pie struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -208,7 +212,7 @@ type Pie struct { // arrayOK: true // type: number // Sets the fraction of larger radius to pull the sectors out from the center. This can be a constant to pull all slices apart from each other equally or an array to highlight one or more slices. - Pull ArrayOK[*float64] `json:"pull,omitempty"` + Pull arrayok.Type[*float64] `json:"pull,omitempty"` // Pullsrc // arrayOK: false @@ -268,7 +272,7 @@ type Pie struct { // default: auto // type: enumerated // Specifies the location of the `textinfo`. - Textposition ArrayOK[*PieTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*PieTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -286,7 +290,7 @@ type Pie struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `percent` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -372,7 +376,7 @@ type PieHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -384,7 +388,7 @@ type PieHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -396,7 +400,7 @@ type PieHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -413,7 +417,7 @@ type PieHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*PieHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*PieHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -425,7 +429,7 @@ type PieHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -437,7 +441,7 @@ type PieHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -454,7 +458,7 @@ type PieHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -470,7 +474,7 @@ type PieInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -482,7 +486,7 @@ type PieInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -494,7 +498,7 @@ type PieInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -547,7 +551,7 @@ type PieMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -559,7 +563,7 @@ type PieMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -575,7 +579,7 @@ type PieMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -587,7 +591,7 @@ type PieMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -613,7 +617,7 @@ type PieMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*PieMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*PieMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -625,7 +629,7 @@ type PieMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -637,7 +641,7 @@ type PieMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -679,7 +683,7 @@ type PieOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -691,7 +695,7 @@ type PieOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -703,7 +707,7 @@ type PieOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -735,7 +739,7 @@ type PieTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -747,7 +751,7 @@ type PieTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -759,7 +763,7 @@ type PieTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -775,7 +779,7 @@ type PieTitleFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -787,7 +791,7 @@ type PieTitleFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -799,7 +803,7 @@ type PieTitleFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/plotly_gen.go b/generated/v2.31.1/graph_objects/plotly_gen.go index f1b563d..692f355 100644 --- a/generated/v2.31.1/graph_objects/plotly_gen.go +++ b/generated/v2.31.1/graph_objects/plotly_gen.go @@ -153,52 +153,3 @@ type ColorList []Color // ColorScale A Plotly colorscale either picked by a name: (any of Greys, YlGnBu, Greens, YlOrRd, Bluered, RdBu, Reds, Blues, Picnic, Rainbow, Portland, Jet, Hot, Blackbody, Earth, Electric, Viridis, Cividis ) customized as an {array} of 2-element {arrays} where the first element is the normalized color level value (starting at *0* and ending at *1*), and the second item is a valid color string. type ColorScale interface{} - -func ArrayOKValue[T any](value T) ArrayOK[*T] { - v := &value - return ArrayOK[*T]{Value: v} -} - -func ArrayOKArray[T any](array ...T) ArrayOK[*T] { - out := make([]*T, len(array)) - for i, v := range array { - value := v - out[i] = &value - } - return ArrayOK[*T]{ - Array: out, - } -} - -// ArrayOK is a type that allows you to define a single value or an array of values, But not both. -// If Array is defined, Value will be ignored. -type ArrayOK[T any] struct { - Value T - Array []T -} - -func (arrayOK *ArrayOK[T]) MarshalJSON() ([]byte, error) { - if arrayOK.Array != nil { - return json.Marshal(arrayOK.Array) - } - return json.Marshal(arrayOK.Value) -} - -func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error { - arrayOK.Array = nil - - var array []T - err := json.Unmarshal(data, &array) - if err == nil { - arrayOK.Array = array - return nil - } - - var value T - err = json.Unmarshal(data, &value) - if err != nil { - return err - } - arrayOK.Value = value - return nil -} diff --git a/generated/v2.31.1/graph_objects/pointcloud_gen.go b/generated/v2.31.1/graph_objects/pointcloud_gen.go index c99e053..8d6dd81 100644 --- a/generated/v2.31.1/graph_objects/pointcloud_gen.go +++ b/generated/v2.31.1/graph_objects/pointcloud_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypePointcloud TraceType = "pointcloud" func (trace *Pointcloud) GetType() TraceType { @@ -32,7 +36,7 @@ type Pointcloud struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*PointcloudHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*PointcloudHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -107,7 +111,7 @@ type Pointcloud struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -142,7 +146,7 @@ type Pointcloud struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -249,7 +253,7 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -261,7 +265,7 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -273,7 +277,7 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -290,7 +294,7 @@ type PointcloudHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*PointcloudHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*PointcloudHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -302,7 +306,7 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -314,7 +318,7 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -331,7 +335,7 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/sankey_gen.go b/generated/v2.31.1/graph_objects/sankey_gen.go index 3a4b15a..6ab822d 100644 --- a/generated/v2.31.1/graph_objects/sankey_gen.go +++ b/generated/v2.31.1/graph_objects/sankey_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSankey TraceType = "sankey" func (trace *Sankey) GetType() TraceType { @@ -95,7 +99,7 @@ type Sankey struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -204,7 +208,7 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -216,7 +220,7 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -228,7 +232,7 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -245,7 +249,7 @@ type SankeyHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SankeyHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SankeyHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -257,7 +261,7 @@ type SankeyHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -269,7 +273,7 @@ type SankeyHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -286,7 +290,7 @@ type SankeyHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -339,7 +343,7 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -351,7 +355,7 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -363,7 +367,7 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -380,7 +384,7 @@ type SankeyLinkHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SankeyLinkHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SankeyLinkHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -392,7 +396,7 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -404,7 +408,7 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -421,7 +425,7 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -437,7 +441,7 @@ type SankeyLinkLine struct { // arrayOK: true // type: color // Sets the color of the `line` around each `link`. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -449,7 +453,7 @@ type SankeyLinkLine struct { // arrayOK: true // type: number // Sets the width (in px) of the `line` around each `link`. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -471,7 +475,7 @@ type SankeyLink struct { // arrayOK: true // type: color // Sets the `link` color. It can be a single value, or an array for specifying color for each `link`. If `link.color` is omitted, then by default, a translucent grey link will be used. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorscales // It's an items array and what goes inside it's... messy... check the docs @@ -501,7 +505,7 @@ type SankeyLink struct { // arrayOK: true // type: color // Sets the `link` hover color. It can be a single value, or an array for specifying hover colors for each `link`. If `link.hovercolor` is omitted, then by default, links will become slightly more opaque when hovered over. - Hovercolor ArrayOK[*Color] `json:"hovercolor,omitempty"` + Hovercolor arrayok.Type[*Color] `json:"hovercolor,omitempty"` // Hovercolorsrc // arrayOK: false @@ -525,7 +529,7 @@ type SankeyLink struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Variables `source` and `target` are node objects.Finally, the template string has access to variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -594,7 +598,7 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -606,7 +610,7 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -618,7 +622,7 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -635,7 +639,7 @@ type SankeyNodeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SankeyNodeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SankeyNodeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -647,7 +651,7 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -659,7 +663,7 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -676,7 +680,7 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -692,7 +696,7 @@ type SankeyNodeLine struct { // arrayOK: true // type: color // Sets the color of the `line` around each `node`. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -704,7 +708,7 @@ type SankeyNodeLine struct { // arrayOK: true // type: number // Sets the width (in px) of the `line` around each `node`. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -727,7 +731,7 @@ type SankeyNode struct { // arrayOK: true // type: color // Sets the `node` color. It can be a single value, or an array for specifying color for each `node`. If `node.color` is omitted, then the default `Plotly` color palette will be cycled through to have a variety of colors. These defaults are not fully opaque, to allow some visibility of what is beneath the node. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -769,7 +773,7 @@ type SankeyNode struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Variables `sourceLinks` and `targetLinks` are arrays of link objects.Finally, the template string has access to variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scatter3d_gen.go b/generated/v2.31.1/graph_objects/scatter3d_gen.go index b1798dc..5f1a3f1 100644 --- a/generated/v2.31.1/graph_objects/scatter3d_gen.go +++ b/generated/v2.31.1/graph_objects/scatter3d_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatter3d TraceType = "scatter3d" func (trace *Scatter3d) GetType() TraceType { @@ -53,7 +57,7 @@ type Scatter3d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Scatter3dHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Scatter3dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -70,7 +74,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -82,7 +86,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y,z) triplet. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y,z) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -145,7 +149,7 @@ type Scatter3d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -211,7 +215,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y,z) triplet. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y,z) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -223,7 +227,7 @@ type Scatter3d struct { // default: top center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*Scatter3dTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*Scatter3dTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -241,7 +245,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -636,7 +640,7 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -648,7 +652,7 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -660,7 +664,7 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -677,7 +681,7 @@ type Scatter3dHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Scatter3dHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Scatter3dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -689,7 +693,7 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -701,7 +705,7 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -718,7 +722,7 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -1172,7 +1176,7 @@ type Scatter3dLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1631,7 +1635,7 @@ type Scatter3dMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1701,7 +1705,7 @@ type Scatter3dMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1753,7 +1757,7 @@ type Scatter3dMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1785,7 +1789,7 @@ type Scatter3dMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. - Symbol ArrayOK[*Scatter3dMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*Scatter3dMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1902,7 +1906,7 @@ type Scatter3dTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1920,7 +1924,7 @@ type Scatter3dTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scatter_gen.go b/generated/v2.31.1/graph_objects/scatter_gen.go index 0bea0de..4115fba 100644 --- a/generated/v2.31.1/graph_objects/scatter_gen.go +++ b/generated/v2.31.1/graph_objects/scatter_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatter TraceType = "scatter" func (trace *Scatter) GetType() TraceType { @@ -102,7 +106,7 @@ type Scatter struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -126,7 +130,7 @@ type Scatter struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -138,7 +142,7 @@ type Scatter struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -201,7 +205,7 @@ type Scatter struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -280,7 +284,7 @@ type Scatter struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -292,7 +296,7 @@ type Scatter struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -310,7 +314,7 @@ type Scatter struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -687,7 +691,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -699,7 +703,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -725,7 +729,7 @@ type ScatterFillpattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*ScatterFillpatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*ScatterFillpatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -737,7 +741,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -749,7 +753,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -765,7 +769,7 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -777,7 +781,7 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -789,7 +793,7 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -806,7 +810,7 @@ type ScatterHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -818,7 +822,7 @@ type ScatterHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -830,7 +834,7 @@ type ScatterHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -847,7 +851,7 @@ type ScatterHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -900,7 +904,7 @@ type ScatterLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -1324,7 +1328,7 @@ type ScatterMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1337,7 +1341,7 @@ type ScatterMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScatterMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScatterMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -1383,7 +1387,7 @@ type ScatterMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1413,7 +1417,7 @@ type ScatterMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1429,7 +1433,7 @@ type ScatterMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1478,7 +1482,7 @@ type ScatterMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1523,7 +1527,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1547,7 +1551,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1578,7 +1582,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1591,7 +1595,7 @@ type ScatterMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1669,7 +1673,7 @@ type ScatterTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1681,7 +1685,7 @@ type ScatterTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1693,7 +1697,7 @@ type ScatterTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scattercarpet_gen.go b/generated/v2.31.1/graph_objects/scattercarpet_gen.go index 390eac3..677861b 100644 --- a/generated/v2.31.1/graph_objects/scattercarpet_gen.go +++ b/generated/v2.31.1/graph_objects/scattercarpet_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattercarpet TraceType = "scattercarpet" func (trace *Scattercarpet) GetType() TraceType { @@ -81,7 +85,7 @@ type Scattercarpet struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattercarpetHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattercarpetHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -105,7 +109,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -117,7 +121,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Sets hover text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -180,7 +184,7 @@ type Scattercarpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -233,7 +237,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Sets text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -245,7 +249,7 @@ type Scattercarpet struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScattercarpetTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScattercarpetTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -263,7 +267,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `a`, `b` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -327,7 +331,7 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -339,7 +343,7 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -351,7 +355,7 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -368,7 +372,7 @@ type ScattercarpetHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattercarpetHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattercarpetHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -380,7 +384,7 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -392,7 +396,7 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -409,7 +413,7 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -462,7 +466,7 @@ type ScattercarpetLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -880,7 +884,7 @@ type ScattercarpetMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -893,7 +897,7 @@ type ScattercarpetMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScattercarpetMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScattercarpetMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -939,7 +943,7 @@ type ScattercarpetMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -969,7 +973,7 @@ type ScattercarpetMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -985,7 +989,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1034,7 +1038,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1079,7 +1083,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1103,7 +1107,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1134,7 +1138,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1147,7 +1151,7 @@ type ScattercarpetMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScattercarpetMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScattercarpetMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1225,7 +1229,7 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1237,7 +1241,7 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1249,7 +1253,7 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scattergeo_gen.go b/generated/v2.31.1/graph_objects/scattergeo_gen.go index eb616e6..f04c9b4 100644 --- a/generated/v2.31.1/graph_objects/scattergeo_gen.go +++ b/generated/v2.31.1/graph_objects/scattergeo_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattergeo TraceType = "scattergeo" func (trace *Scattergeo) GetType() TraceType { @@ -69,7 +73,7 @@ type Scattergeo struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattergeoHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattergeoHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -86,7 +90,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -98,7 +102,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair or item in `locations`. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) or `locations` coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -204,7 +208,7 @@ type Scattergeo struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -257,7 +261,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair or item in `locations`. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) or `locations` coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -269,7 +273,7 @@ type Scattergeo struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScattergeoTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScattergeoTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -287,7 +291,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `lat`, `lon`, `location` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -333,7 +337,7 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -345,7 +349,7 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -357,7 +361,7 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -374,7 +378,7 @@ type ScattergeoHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattergeoHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattergeoHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -386,7 +390,7 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -398,7 +402,7 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -415,7 +419,7 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -861,7 +865,7 @@ type ScattergeoMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -874,7 +878,7 @@ type ScattergeoMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScattergeoMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScattergeoMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -920,7 +924,7 @@ type ScattergeoMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -950,7 +954,7 @@ type ScattergeoMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -966,7 +970,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1015,7 +1019,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1054,7 +1058,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1078,7 +1082,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1109,7 +1113,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1122,7 +1126,7 @@ type ScattergeoMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScattergeoMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScattergeoMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1200,7 +1204,7 @@ type ScattergeoTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1212,7 +1216,7 @@ type ScattergeoTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1224,7 +1228,7 @@ type ScattergeoTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scattergl_gen.go b/generated/v2.31.1/graph_objects/scattergl_gen.go index d45dff5..8eedcd4 100644 --- a/generated/v2.31.1/graph_objects/scattergl_gen.go +++ b/generated/v2.31.1/graph_objects/scattergl_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattergl TraceType = "scattergl" func (trace *Scattergl) GetType() TraceType { @@ -73,7 +77,7 @@ type Scattergl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterglHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -90,7 +94,7 @@ type Scattergl struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -102,7 +106,7 @@ type Scattergl struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -165,7 +169,7 @@ type Scattergl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -218,7 +222,7 @@ type Scattergl struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -230,7 +234,7 @@ type Scattergl struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterglTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterglTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -248,7 +252,7 @@ type Scattergl struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -590,7 +594,7 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -602,7 +606,7 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -614,7 +618,7 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -631,7 +635,7 @@ type ScatterglHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterglHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -643,7 +647,7 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -655,7 +659,7 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -672,7 +676,7 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -1156,7 +1160,7 @@ type ScatterglMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1186,7 +1190,7 @@ type ScatterglMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1202,7 +1206,7 @@ type ScatterglMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -1244,7 +1248,7 @@ type ScatterglMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1278,7 +1282,7 @@ type ScatterglMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1302,7 +1306,7 @@ type ScatterglMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1334,7 +1338,7 @@ type ScatterglMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterglMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterglMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1412,7 +1416,7 @@ type ScatterglTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1424,7 +1428,7 @@ type ScatterglTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1436,7 +1440,7 @@ type ScatterglTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scattermapbox_gen.go b/generated/v2.31.1/graph_objects/scattermapbox_gen.go index aa1a94f..c1fb4db 100644 --- a/generated/v2.31.1/graph_objects/scattermapbox_gen.go +++ b/generated/v2.31.1/graph_objects/scattermapbox_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattermapbox TraceType = "scattermapbox" func (trace *Scattermapbox) GetType() TraceType { @@ -62,7 +66,7 @@ type Scattermapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattermapboxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattermapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -79,7 +83,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -91,7 +95,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -178,7 +182,7 @@ type Scattermapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -237,7 +241,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -261,7 +265,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `lat`, `lon` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -307,7 +311,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: color // Sets the color for each cluster step. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -331,7 +335,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -343,7 +347,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets the size for each cluster step. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -355,7 +359,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets how many points it takes to create a cluster or advance to the next cluster step. Use this in conjunction with arrays for `size` and / or `color`. If an integer, steps start at multiples of this number. If an array, each step extends from the given value until one less than the next value. - Step ArrayOK[*float64] `json:"step,omitempty"` + Step arrayok.Type[*float64] `json:"step,omitempty"` // Stepsrc // arrayOK: false @@ -371,7 +375,7 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -383,7 +387,7 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -395,7 +399,7 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -412,7 +416,7 @@ type ScattermapboxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattermapboxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattermapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -424,7 +428,7 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -436,7 +440,7 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -453,7 +457,7 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -899,7 +903,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker orientation from true North, in degrees clockwise. When using the *auto* default, no rotation would be applied in perspective views which is different from using a zero angle. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -941,7 +945,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -970,7 +974,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -994,7 +998,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1025,7 +1029,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: string // Sets the marker symbol. Full list: https://www.mapbox.com/maki-icons/ Note that the array `marker.color` and `marker.size` are only available for *circle* symbols. - Symbol ArrayOK[*string] `json:"symbol,omitempty"` + Symbol arrayok.Type[*string] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scatterpolar_gen.go b/generated/v2.31.1/graph_objects/scatterpolar_gen.go index 5e06795..aba712d 100644 --- a/generated/v2.31.1/graph_objects/scatterpolar_gen.go +++ b/generated/v2.31.1/graph_objects/scatterpolar_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatterpolar TraceType = "scatterpolar" func (trace *Scatterpolar) GetType() TraceType { @@ -69,7 +73,7 @@ type Scatterpolar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterpolarHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterpolarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -93,7 +97,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -105,7 +109,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -168,7 +172,7 @@ type Scatterpolar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -245,7 +249,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -257,7 +261,7 @@ type Scatterpolar struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterpolarTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterpolarTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -275,7 +279,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `r`, `theta` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -346,7 +350,7 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -358,7 +362,7 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -370,7 +374,7 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -387,7 +391,7 @@ type ScatterpolarHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterpolarHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterpolarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -399,7 +403,7 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -411,7 +415,7 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -428,7 +432,7 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -481,7 +485,7 @@ type ScatterpolarLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -899,7 +903,7 @@ type ScatterpolarMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -912,7 +916,7 @@ type ScatterpolarMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScatterpolarMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScatterpolarMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -958,7 +962,7 @@ type ScatterpolarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -988,7 +992,7 @@ type ScatterpolarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1004,7 +1008,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1053,7 +1057,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1098,7 +1102,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1122,7 +1126,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1153,7 +1157,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1166,7 +1170,7 @@ type ScatterpolarMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterpolarMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterpolarMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1244,7 +1248,7 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1256,7 +1260,7 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1268,7 +1272,7 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scatterpolargl_gen.go b/generated/v2.31.1/graph_objects/scatterpolargl_gen.go index e85aa75..ee8db71 100644 --- a/generated/v2.31.1/graph_objects/scatterpolargl_gen.go +++ b/generated/v2.31.1/graph_objects/scatterpolargl_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatterpolargl TraceType = "scatterpolargl" func (trace *Scatterpolargl) GetType() TraceType { @@ -63,7 +67,7 @@ type Scatterpolargl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterpolarglHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterpolarglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -80,7 +84,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -92,7 +96,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -155,7 +159,7 @@ type Scatterpolargl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -232,7 +236,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -244,7 +248,7 @@ type Scatterpolargl struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterpolarglTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterpolarglTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -262,7 +266,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `r`, `theta` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -333,7 +337,7 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -345,7 +349,7 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -357,7 +361,7 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -374,7 +378,7 @@ type ScatterpolarglHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterpolarglHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterpolarglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -386,7 +390,7 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -398,7 +402,7 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -415,7 +419,7 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -892,7 +896,7 @@ type ScatterpolarglMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -922,7 +926,7 @@ type ScatterpolarglMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -938,7 +942,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -980,7 +984,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1014,7 +1018,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1038,7 +1042,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1070,7 +1074,7 @@ type ScatterpolarglMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterpolarglMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterpolarglMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1148,7 +1152,7 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1160,7 +1164,7 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1172,7 +1176,7 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scattersmith_gen.go b/generated/v2.31.1/graph_objects/scattersmith_gen.go index 771e712..40ad3a3 100644 --- a/generated/v2.31.1/graph_objects/scattersmith_gen.go +++ b/generated/v2.31.1/graph_objects/scattersmith_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattersmith TraceType = "scattersmith" func (trace *Scattersmith) GetType() TraceType { @@ -57,7 +61,7 @@ type Scattersmith struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattersmithHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattersmithHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -81,7 +85,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -93,7 +97,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -168,7 +172,7 @@ type Scattersmith struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -239,7 +243,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -251,7 +255,7 @@ type Scattersmith struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScattersmithTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScattersmithTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -269,7 +273,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `real`, `imag` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -315,7 +319,7 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -327,7 +331,7 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -339,7 +343,7 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -356,7 +360,7 @@ type ScattersmithHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattersmithHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattersmithHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -368,7 +372,7 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -380,7 +384,7 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -397,7 +401,7 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -450,7 +454,7 @@ type ScattersmithLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -868,7 +872,7 @@ type ScattersmithMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -881,7 +885,7 @@ type ScattersmithMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScattersmithMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScattersmithMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -927,7 +931,7 @@ type ScattersmithMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -957,7 +961,7 @@ type ScattersmithMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -973,7 +977,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1022,7 +1026,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1067,7 +1071,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1091,7 +1095,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1122,7 +1126,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1135,7 +1139,7 @@ type ScattersmithMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScattersmithMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScattersmithMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1213,7 +1217,7 @@ type ScattersmithTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1225,7 +1229,7 @@ type ScattersmithTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1237,7 +1241,7 @@ type ScattersmithTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scatterternary_gen.go b/generated/v2.31.1/graph_objects/scatterternary_gen.go index 5059355..994812b 100644 --- a/generated/v2.31.1/graph_objects/scatterternary_gen.go +++ b/generated/v2.31.1/graph_objects/scatterternary_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatterternary TraceType = "scatterternary" func (trace *Scatterternary) GetType() TraceType { @@ -93,7 +97,7 @@ type Scatterternary struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterternaryHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterternaryHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -117,7 +121,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -129,7 +133,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Sets hover text elements associated with each (a,b,c) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b,c). To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -192,7 +196,7 @@ type Scatterternary struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -257,7 +261,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Sets text elements associated with each (a,b,c) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b,c). If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -269,7 +273,7 @@ type Scatterternary struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterternaryTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterternaryTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -287,7 +291,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `a`, `b`, `c` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -333,7 +337,7 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -345,7 +349,7 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -357,7 +361,7 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -374,7 +378,7 @@ type ScatterternaryHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterternaryHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterternaryHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -386,7 +390,7 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -398,7 +402,7 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -415,7 +419,7 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -468,7 +472,7 @@ type ScatterternaryLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -886,7 +890,7 @@ type ScatterternaryMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -899,7 +903,7 @@ type ScatterternaryMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScatterternaryMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScatterternaryMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -945,7 +949,7 @@ type ScatterternaryMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -975,7 +979,7 @@ type ScatterternaryMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -991,7 +995,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1040,7 +1044,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1085,7 +1089,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1109,7 +1113,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1140,7 +1144,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1153,7 +1157,7 @@ type ScatterternaryMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterternaryMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterternaryMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1231,7 +1235,7 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1243,7 +1247,7 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1255,7 +1259,7 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/splom_gen.go b/generated/v2.31.1/graph_objects/splom_gen.go index 4594bbd..9d78499 100644 --- a/generated/v2.31.1/graph_objects/splom_gen.go +++ b/generated/v2.31.1/graph_objects/splom_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSplom TraceType = "splom" func (trace *Splom) GetType() TraceType { @@ -43,7 +47,7 @@ type Splom struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*SplomHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*SplomHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -60,7 +64,7 @@ type Splom struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -72,7 +76,7 @@ type Splom struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -130,7 +134,7 @@ type Splom struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -188,7 +192,7 @@ type Splom struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair to appear on hover. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -268,7 +272,7 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -280,7 +284,7 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -292,7 +296,7 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -309,7 +313,7 @@ type SplomHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SplomHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SplomHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -321,7 +325,7 @@ type SplomHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -333,7 +337,7 @@ type SplomHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -350,7 +354,7 @@ type SplomHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -804,7 +808,7 @@ type SplomMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -834,7 +838,7 @@ type SplomMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -850,7 +854,7 @@ type SplomMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -892,7 +896,7 @@ type SplomMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -926,7 +930,7 @@ type SplomMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -950,7 +954,7 @@ type SplomMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -982,7 +986,7 @@ type SplomMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*SplomMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*SplomMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/streamtube_gen.go b/generated/v2.31.1/graph_objects/streamtube_gen.go index b5c9614..ba92a1c 100644 --- a/generated/v2.31.1/graph_objects/streamtube_gen.go +++ b/generated/v2.31.1/graph_objects/streamtube_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeStreamtube TraceType = "streamtube" func (trace *Streamtube) GetType() TraceType { @@ -79,7 +83,7 @@ type Streamtube struct { // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*StreamtubeHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*StreamtubeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -96,7 +100,7 @@ type Streamtube struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `tubex`, `tubey`, `tubez`, `tubeu`, `tubev`, `tubew`, `norm` and `divergence`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -171,7 +175,7 @@ type Streamtube struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -743,7 +747,7 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -755,7 +759,7 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -767,7 +771,7 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -784,7 +788,7 @@ type StreamtubeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*StreamtubeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*StreamtubeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -796,7 +800,7 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -808,7 +812,7 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -825,7 +829,7 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/sunburst_gen.go b/generated/v2.31.1/graph_objects/sunburst_gen.go index 5070ab9..83ebfdc 100644 --- a/generated/v2.31.1/graph_objects/sunburst_gen.go +++ b/generated/v2.31.1/graph_objects/sunburst_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSunburst TraceType = "sunburst" func (trace *Sunburst) GetType() TraceType { @@ -51,7 +55,7 @@ type Sunburst struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*SunburstHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*SunburstHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Sunburst struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -80,7 +84,7 @@ type Sunburst struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -173,7 +177,7 @@ type Sunburst struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -260,7 +264,7 @@ type Sunburst struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -341,7 +345,7 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -353,7 +357,7 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -365,7 +369,7 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -382,7 +386,7 @@ type SunburstHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SunburstHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SunburstHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -394,7 +398,7 @@ type SunburstHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -406,7 +410,7 @@ type SunburstHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -423,7 +427,7 @@ type SunburstHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -439,7 +443,7 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -451,7 +455,7 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -463,7 +467,7 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -897,7 +901,7 @@ type SunburstMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -909,7 +913,7 @@ type SunburstMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -925,7 +929,7 @@ type SunburstMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -937,7 +941,7 @@ type SunburstMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -963,7 +967,7 @@ type SunburstMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*SunburstMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*SunburstMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -975,7 +979,7 @@ type SunburstMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -987,7 +991,7 @@ type SunburstMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1088,7 +1092,7 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1100,7 +1104,7 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1112,7 +1116,7 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1154,7 +1158,7 @@ type SunburstTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1166,7 +1170,7 @@ type SunburstTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1178,7 +1182,7 @@ type SunburstTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/surface_gen.go b/generated/v2.31.1/graph_objects/surface_gen.go index f25d0c6..7de29eb 100644 --- a/generated/v2.31.1/graph_objects/surface_gen.go +++ b/generated/v2.31.1/graph_objects/surface_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSurface TraceType = "surface" func (trace *Surface) GetType() TraceType { @@ -96,7 +100,7 @@ type Surface struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*SurfaceHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*SurfaceHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -113,7 +117,7 @@ type Surface struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -125,7 +129,7 @@ type Surface struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -188,7 +192,7 @@ type Surface struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -259,7 +263,7 @@ type Surface struct { // arrayOK: true // type: string // Sets the text elements associated with each z value. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -1032,7 +1036,7 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1044,7 +1048,7 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1056,7 +1060,7 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1073,7 +1077,7 @@ type SurfaceHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SurfaceHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SurfaceHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -1085,7 +1089,7 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -1097,7 +1101,7 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -1114,7 +1118,7 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/table_gen.go b/generated/v2.31.1/graph_objects/table_gen.go index 10815de..3ec95d3 100644 --- a/generated/v2.31.1/graph_objects/table_gen.go +++ b/generated/v2.31.1/graph_objects/table_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeTable TraceType = "table" func (trace *Table) GetType() TraceType { @@ -36,7 +40,7 @@ type Table struct { // arrayOK: true // type: number // The width of columns expressed as a ratio. Columns fill the available width in proportion of their specified column widths. - Columnwidth ArrayOK[*float64] `json:"columnwidth,omitempty"` + Columnwidth arrayok.Type[*float64] `json:"columnwidth,omitempty"` // Columnwidthsrc // arrayOK: false @@ -71,7 +75,7 @@ type Table struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*TableHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*TableHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -123,7 +127,7 @@ type Table struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -169,7 +173,7 @@ type TableCellsFill struct { // arrayOK: true // type: color // Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -185,7 +189,7 @@ type TableCellsFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -197,7 +201,7 @@ type TableCellsFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -209,7 +213,7 @@ type TableCellsFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -225,7 +229,7 @@ type TableCellsLine struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -237,7 +241,7 @@ type TableCellsLine struct { // arrayOK: true // type: number // - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -254,7 +258,7 @@ type TableCells struct { // default: center // type: enumerated // Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. - Align ArrayOK[*TableCellsAlign] `json:"align,omitempty"` + Align arrayok.Type[*TableCellsAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -299,7 +303,7 @@ type TableCells struct { // arrayOK: true // type: string // Prefix for cell values. - Prefix ArrayOK[*string] `json:"prefix,omitempty"` + Prefix arrayok.Type[*string] `json:"prefix,omitempty"` // Prefixsrc // arrayOK: false @@ -311,7 +315,7 @@ type TableCells struct { // arrayOK: true // type: string // Suffix for cell values. - Suffix ArrayOK[*string] `json:"suffix,omitempty"` + Suffix arrayok.Type[*string] `json:"suffix,omitempty"` // Suffixsrc // arrayOK: false @@ -367,7 +371,7 @@ type TableHeaderFill struct { // arrayOK: true // type: color // Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -383,7 +387,7 @@ type TableHeaderFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -395,7 +399,7 @@ type TableHeaderFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -407,7 +411,7 @@ type TableHeaderFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -423,7 +427,7 @@ type TableHeaderLine struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -435,7 +439,7 @@ type TableHeaderLine struct { // arrayOK: true // type: number // - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -452,7 +456,7 @@ type TableHeader struct { // default: center // type: enumerated // Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. - Align ArrayOK[*TableHeaderAlign] `json:"align,omitempty"` + Align arrayok.Type[*TableHeaderAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -497,7 +501,7 @@ type TableHeader struct { // arrayOK: true // type: string // Prefix for cell values. - Prefix ArrayOK[*string] `json:"prefix,omitempty"` + Prefix arrayok.Type[*string] `json:"prefix,omitempty"` // Prefixsrc // arrayOK: false @@ -509,7 +513,7 @@ type TableHeader struct { // arrayOK: true // type: string // Suffix for cell values. - Suffix ArrayOK[*string] `json:"suffix,omitempty"` + Suffix arrayok.Type[*string] `json:"suffix,omitempty"` // Suffixsrc // arrayOK: false @@ -537,7 +541,7 @@ type TableHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -549,7 +553,7 @@ type TableHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -561,7 +565,7 @@ type TableHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -578,7 +582,7 @@ type TableHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*TableHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*TableHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -590,7 +594,7 @@ type TableHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -602,7 +606,7 @@ type TableHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -619,7 +623,7 @@ type TableHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/treemap_gen.go b/generated/v2.31.1/graph_objects/treemap_gen.go index e3e3e4b..49d0083 100644 --- a/generated/v2.31.1/graph_objects/treemap_gen.go +++ b/generated/v2.31.1/graph_objects/treemap_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeTreemap TraceType = "treemap" func (trace *Treemap) GetType() TraceType { @@ -51,7 +55,7 @@ type Treemap struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*TreemapHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*TreemapHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Treemap struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -80,7 +84,7 @@ type Treemap struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -161,7 +165,7 @@ type Treemap struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -254,7 +258,7 @@ type Treemap struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -340,7 +344,7 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -352,7 +356,7 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -364,7 +368,7 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -381,7 +385,7 @@ type TreemapHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*TreemapHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*TreemapHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -393,7 +397,7 @@ type TreemapHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -405,7 +409,7 @@ type TreemapHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -422,7 +426,7 @@ type TreemapHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -438,7 +442,7 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -450,7 +454,7 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -462,7 +466,7 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -886,7 +890,7 @@ type TreemapMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -898,7 +902,7 @@ type TreemapMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -942,7 +946,7 @@ type TreemapMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -954,7 +958,7 @@ type TreemapMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -980,7 +984,7 @@ type TreemapMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*TreemapMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*TreemapMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -992,7 +996,7 @@ type TreemapMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1004,7 +1008,7 @@ type TreemapMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1123,7 +1127,7 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1135,7 +1139,7 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1147,7 +1151,7 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1163,7 +1167,7 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1175,7 +1179,7 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1187,7 +1191,7 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1264,7 +1268,7 @@ type TreemapTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1276,7 +1280,7 @@ type TreemapTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1288,7 +1292,7 @@ type TreemapTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/violin_gen.go b/generated/v2.31.1/graph_objects/violin_gen.go index ec404e2..062829b 100644 --- a/generated/v2.31.1/graph_objects/violin_gen.go +++ b/generated/v2.31.1/graph_objects/violin_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeViolin TraceType = "violin" func (trace *Violin) GetType() TraceType { @@ -55,7 +59,7 @@ type Violin struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ViolinHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ViolinHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -79,7 +83,7 @@ type Violin struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -91,7 +95,7 @@ type Violin struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -165,7 +169,7 @@ type Violin struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -277,7 +281,7 @@ type Violin struct { // arrayOK: true // type: string // Sets the text elements associated with each sample value. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -438,7 +442,7 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -450,7 +454,7 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -462,7 +466,7 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -479,7 +483,7 @@ type ViolinHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ViolinHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ViolinHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -491,7 +495,7 @@ type ViolinHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -503,7 +507,7 @@ type ViolinHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -520,7 +524,7 @@ type ViolinHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/volume_gen.go b/generated/v2.31.1/graph_objects/volume_gen.go index 170023c..b6c11e7 100644 --- a/generated/v2.31.1/graph_objects/volume_gen.go +++ b/generated/v2.31.1/graph_objects/volume_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeVolume TraceType = "volume" func (trace *Volume) GetType() TraceType { @@ -95,7 +99,7 @@ type Volume struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*VolumeHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*VolumeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -112,7 +116,7 @@ type Volume struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -124,7 +128,7 @@ type Volume struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -199,7 +203,7 @@ type Volume struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -273,7 +277,7 @@ type Volume struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -840,7 +844,7 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -852,7 +856,7 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -864,7 +868,7 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -881,7 +885,7 @@ type VolumeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*VolumeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*VolumeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -893,7 +897,7 @@ type VolumeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -905,7 +909,7 @@ type VolumeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -922,7 +926,7 @@ type VolumeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/waterfall_gen.go b/generated/v2.31.1/graph_objects/waterfall_gen.go index 8cb7a46..5c30701 100644 --- a/generated/v2.31.1/graph_objects/waterfall_gen.go +++ b/generated/v2.31.1/graph_objects/waterfall_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeWaterfall TraceType = "waterfall" func (trace *Waterfall) GetType() TraceType { @@ -79,7 +83,7 @@ type Waterfall struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*WaterfallHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*WaterfallHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -96,7 +100,7 @@ type Waterfall struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `initial`, `delta` and `final`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -108,7 +112,7 @@ type Waterfall struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -190,7 +194,7 @@ type Waterfall struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -208,7 +212,7 @@ type Waterfall struct { // arrayOK: true // type: number // Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead. - Offset ArrayOK[*float64] `json:"offset,omitempty"` + Offset arrayok.Type[*float64] `json:"offset,omitempty"` // Offsetgroup // arrayOK: false @@ -261,7 +265,7 @@ type Waterfall struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -286,7 +290,7 @@ type Waterfall struct { // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition ArrayOK[*WaterfallTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*WaterfallTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -304,7 +308,7 @@ type Waterfall struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `initial`, `delta`, `final` and `label`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -346,7 +350,7 @@ type Waterfall struct { // arrayOK: true // type: number // Sets the bar width (in position axis units). - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -550,7 +554,7 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -562,7 +566,7 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -574,7 +578,7 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -591,7 +595,7 @@ type WaterfallHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*WaterfallHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*WaterfallHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -603,7 +607,7 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -615,7 +619,7 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -632,7 +636,7 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -688,7 +692,7 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -700,7 +704,7 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -712,7 +716,7 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -765,7 +769,7 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -777,7 +781,7 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -789,7 +793,7 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -821,7 +825,7 @@ type WaterfallTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -833,7 +837,7 @@ type WaterfallTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -845,7 +849,7 @@ type WaterfallTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generator/renderer.go b/generator/renderer.go index e3cd706..8b74fe7 100644 --- a/generator/renderer.go +++ b/generator/renderer.go @@ -185,22 +185,19 @@ func (r *Renderer) WriteTrace(traceName string, w io.Writer) error { } traceFile.MainType.Fields = append(traceFile.MainType.Fields, fields...) - fmt.Fprintf(w, `package grob - -%s - -var TraceType%s TraceType = "%s" - -func (trace *%s) GetType() TraceType { - return TraceType%s -} -`, - doNotEdit, - traceFile.MainType.Name, - traceName, - traceFile.MainType.Name, - traceFile.MainType.Name, - ) + tmplData := struct { + DoNotEdit string + TraceTypeName string + TraceName string + }{ + DoNotEdit: doNotEdit, + TraceTypeName: traceFile.MainType.Name, + TraceName: traceName, + } + err = r.tmpl.ExecuteTemplate(w, "trace_base.tmpl", tmplData) + if err != nil { + return fmt.Errorf("Failed to render trace_base.tmpl, %w", err) + } err = r.tmpl.ExecuteTemplate(w, "trace.tmpl", traceFile.MainType) if err != nil { @@ -339,7 +336,10 @@ func (r *Renderer) WriteLayout(w io.Writer) error { } } - fmt.Fprint(w, "package grob\n\n", doNotEdit) + err = r.tmpl.ExecuteTemplate(w, "layout_base.tmpl", doNotEdit) + if err != nil { + return fmt.Errorf("Failed to render layout_base.tmpl, %w", err) + } err = r.tmpl.ExecuteTemplate(w, "trace.tmpl", traceFile.MainType) if err != nil { diff --git a/generator/templates/layout_base.tmpl b/generator/templates/layout_base.tmpl new file mode 100644 index 0000000..de69917 --- /dev/null +++ b/generator/templates/layout_base.tmpl @@ -0,0 +1,7 @@ +package grob + +{{ . }} + +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) diff --git a/generator/templates/plotly.go b/generator/templates/plotly.go index f1b563d..692f355 100644 --- a/generator/templates/plotly.go +++ b/generator/templates/plotly.go @@ -153,52 +153,3 @@ type ColorList []Color // ColorScale A Plotly colorscale either picked by a name: (any of Greys, YlGnBu, Greens, YlOrRd, Bluered, RdBu, Reds, Blues, Picnic, Rainbow, Portland, Jet, Hot, Blackbody, Earth, Electric, Viridis, Cividis ) customized as an {array} of 2-element {arrays} where the first element is the normalized color level value (starting at *0* and ending at *1*), and the second item is a valid color string. type ColorScale interface{} - -func ArrayOKValue[T any](value T) ArrayOK[*T] { - v := &value - return ArrayOK[*T]{Value: v} -} - -func ArrayOKArray[T any](array ...T) ArrayOK[*T] { - out := make([]*T, len(array)) - for i, v := range array { - value := v - out[i] = &value - } - return ArrayOK[*T]{ - Array: out, - } -} - -// ArrayOK is a type that allows you to define a single value or an array of values, But not both. -// If Array is defined, Value will be ignored. -type ArrayOK[T any] struct { - Value T - Array []T -} - -func (arrayOK *ArrayOK[T]) MarshalJSON() ([]byte, error) { - if arrayOK.Array != nil { - return json.Marshal(arrayOK.Array) - } - return json.Marshal(arrayOK.Value) -} - -func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error { - arrayOK.Array = nil - - var array []T - err := json.Unmarshal(data, &array) - if err == nil { - arrayOK.Array = array - return nil - } - - var value T - err = json.Unmarshal(data, &value) - if err != nil { - return err - } - arrayOK.Value = value - return nil -} diff --git a/generator/templates/trace_base.tmpl b/generator/templates/trace_base.tmpl new file mode 100644 index 0000000..a0acdca --- /dev/null +++ b/generator/templates/trace_base.tmpl @@ -0,0 +1,14 @@ +package grob + +{{ .DoNotEdit }} + +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + +var TraceType{{ .TraceTypeName }} TraceType = "{{ .TraceName }}" + +func (trace *{{ .TraceTypeName }}) GetType() TraceType { + return TraceType{{ .TraceTypeName }} +} + diff --git a/generator/typefile.go b/generator/typefile.go index 506c5a1..a69553b 100644 --- a/generator/typefile.go +++ b/generator/typefile.go @@ -108,7 +108,7 @@ func (file *typeFile) parseAttributes(namePrefix string, typePrefix string, attr } typeName := "*" + name if attr.ArrayOK { - typeName = fmt.Sprintf("ArrayOK[*%s]", typeName) + typeName = fmt.Sprintf("arrayok.Type[*%s]", typeName) } fields = append(fields, structField{ Name: xstrings.ToCamelCase(attr.Name), @@ -128,7 +128,7 @@ func (file *typeFile) parseAttributes(namePrefix string, typePrefix string, attr } typeName := typePrefix + xstrings.ToCamelCase(attr.Name) if attr.ArrayOK { - typeName = fmt.Sprintf("ArrayOK[*%s]", typeName) + typeName = fmt.Sprintf("arrayok.Type[*%s]", typeName) } fields = append(fields, structField{ Name: xstrings.ToCamelCase(attr.Name), @@ -150,7 +150,7 @@ func (file *typeFile) parseAttributes(namePrefix string, typePrefix string, attr return nil, fmt.Errorf("cannot parse enum %s, %w", typeName, err) } if attr.ArrayOK { - typeName = fmt.Sprintf("ArrayOK[*%s]", typeName) + typeName = fmt.Sprintf("arrayok.Type[*%s]", typeName) } fields = append(fields, structField{ Name: xstrings.ToCamelCase(attr.Name), @@ -177,20 +177,20 @@ func (file *typeFile) parseAttributes(namePrefix string, typePrefix string, attr }) default: - ty := valTypeMap[attr.ValType] + typeName := valTypeMap[attr.ValType] // Special case, the attribute color may also be a ColorScale if attr.ValType == ValTypeColor && attr.Name == "color" && attrs["colorscale"] != nil { - ty = "ColorWithColorScale" + typeName = "ColorWithColorScale" } if attr.ArrayOK { - ty = fmt.Sprintf("ArrayOK[*%s]", ty) + typeName = fmt.Sprintf("arrayok.Type[*%s]", typeName) } fields = append(fields, structField{ Name: xstrings.ToCamelCase(attr.Name), JSONName: attr.Name, - Type: ty, + Type: typeName, Description: []string{ fmt.Sprintf("arrayOK: %t", attr.ArrayOK), fmt.Sprintf("type: %s", attr.ValType), diff --git a/types/arrayok.go b/types/arrayok/arrayok.go similarity index 58% rename from types/arrayok.go rename to types/arrayok/arrayok.go index ee8d7be..5da8550 100644 --- a/types/arrayok.go +++ b/types/arrayok/arrayok.go @@ -1,40 +1,40 @@ -package types +package arrayok import ( "encoding/json" ) -func ArrayOKValue[T any](value T) ArrayOK[*T] { +func Value[T any](value T) Type[*T] { v := &value - return ArrayOK[*T]{Value: v} + return Type[*T]{Value: v} } -func ArrayOKArray[T any](array ...T) ArrayOK[*T] { +func Array[T any](array ...T) Type[*T] { out := make([]*T, len(array)) for i, v := range array { value := v out[i] = &value } - return ArrayOK[*T]{ + return Type[*T]{ Array: out, } } -// ArrayOK is a type that allows you to define a single value or an array of values, But not both. +// Type is a type that allows you to define a single value or an array of values, But not both. // If Array is defined, Value will be ignored. -type ArrayOK[T any] struct { +type Type[T any] struct { Value T Array []T } -func (arrayOK *ArrayOK[T]) MarshalJSON() ([]byte, error) { +func (arrayOK *Type[T]) MarshalJSON() ([]byte, error) { if arrayOK.Array != nil { return json.Marshal(arrayOK.Array) } return json.Marshal(arrayOK.Value) } -func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error { +func (arrayOK *Type[T]) UnmarshalJSON(data []byte) error { arrayOK.Array = nil var array []T diff --git a/types/arrayok_test.go b/types/arrayok/arrayok_test.go similarity index 77% rename from types/arrayok_test.go rename to types/arrayok/arrayok_test.go index 1f91cf4..68b58f7 100644 --- a/types/arrayok_test.go +++ b/types/arrayok/arrayok_test.go @@ -1,16 +1,16 @@ -package types_test +package arrayok_test import ( "encoding/json" "testing" - "github.com/MetalBlueberry/go-plotly/types" + "github.com/MetalBlueberry/go-plotly/types/arrayok" . "github.com/onsi/gomega" ) type TestMarshallScenario[T any] struct { Name string - Input types.ArrayOK[T] + Input arrayok.Type[T] Expected string } @@ -20,28 +20,28 @@ func TestFloat64Marshal(t *testing.T) { scenarios := []TestMarshallScenario[*float64]{ { Name: "A single number", - Input: types.ArrayOKValue(12.3), + Input: arrayok.Value(12.3), Expected: "12.3", }, { Name: "A single number in a list", - Input: types.ArrayOKArray(12.3), + Input: arrayok.Array(12.3), Expected: "[12.3]", }, { Name: "Multiple values", - Input: types.ArrayOKArray(1, 2, 3, 4.5), + Input: arrayok.Array(1, 2, 3, 4.5), Expected: "[1,2,3,4.5]", }, { Name: "Nil Value", - Input: types.ArrayOK[*float64]{}, + Input: arrayok.Type[*float64]{}, Expected: "null", }, { Name: "Nil Array", - Input: func() types.ArrayOK[*float64] { - original := types.ArrayOKArray(1.2, 0, 3.4) + Input: func() arrayok.Type[*float64] { + original := arrayok.Array(1.2, 0, 3.4) original.Array[1] = nil return original }(), @@ -64,28 +64,28 @@ func TestStringMarshal(t *testing.T) { scenarios := []TestMarshallScenario[*string]{ { Name: "A single string", - Input: types.ArrayOKValue("hello"), + Input: arrayok.Value("hello"), Expected: `"hello"`, }, { Name: "A single string in a list", - Input: types.ArrayOKArray("hello"), + Input: arrayok.Array("hello"), Expected: `["hello"]`, }, { Name: "Multiple strings", - Input: types.ArrayOKArray("hello", "world", "foo", "bar"), + Input: arrayok.Array("hello", "world", "foo", "bar"), Expected: `["hello","world","foo","bar"]`, }, { Name: "Nil Value", - Input: types.ArrayOK[*string]{}, + Input: arrayok.Type[*string]{}, Expected: "null", }, { Name: "Nil Array", - Input: func() types.ArrayOK[*string] { - original := types.ArrayOKArray("hello", "", "world") + Input: func() arrayok.Type[*string] { + original := arrayok.Array("hello", "", "world") original.Array[1] = nil return original }(), @@ -105,7 +105,7 @@ func TestStringMarshal(t *testing.T) { type TestUnmarshalScenario[T any] struct { Name string Input string - Expected types.ArrayOK[T] + Expected arrayok.Type[T] } func TestFloat64Unmarshal(t *testing.T) { @@ -115,28 +115,28 @@ func TestFloat64Unmarshal(t *testing.T) { { Name: "A single number", Input: "12.3", - Expected: types.ArrayOKValue(12.3), + Expected: arrayok.Value(12.3), }, { Name: "A single number in a list", Input: "[12.3]", - Expected: types.ArrayOKArray(12.3), + Expected: arrayok.Array(12.3), }, { Name: "Multiple values", Input: "[1,2,3,4.5]", - Expected: types.ArrayOKArray(1, 2, 3, 4.5), + Expected: arrayok.Array(1, 2, 3, 4.5), }, { Name: "Nil Value", Input: "null", - Expected: types.ArrayOK[*float64]{}, + Expected: arrayok.Type[*float64]{}, }, { Name: "Nil Array", Input: "[1.2,null,3.4]", - Expected: func() types.ArrayOK[*float64] { - original := types.ArrayOKArray(1.2, 0, 3.4) + Expected: func() arrayok.Type[*float64] { + original := arrayok.Array(1.2, 0, 3.4) original.Array[1] = nil return original }(), @@ -145,7 +145,7 @@ func TestFloat64Unmarshal(t *testing.T) { for _, tt := range scenarios { t.Run(tt.Name, func(t *testing.T) { - result := types.ArrayOK[*float64]{} + result := arrayok.Type[*float64]{} err := json.Unmarshal([]byte(tt.Input), &result) Expect(err).To(BeNil()) Expect(result).To(Equal(tt.Expected)) @@ -160,28 +160,28 @@ func TestStringUnmarshal(t *testing.T) { { Name: "A single string", Input: `"hello"`, - Expected: types.ArrayOKValue("hello"), + Expected: arrayok.Value("hello"), }, { Name: "A single string in a list", Input: `["hello"]`, - Expected: types.ArrayOKArray("hello"), + Expected: arrayok.Array("hello"), }, { Name: "Multiple strings", Input: `["hello","world","foo","bar"]`, - Expected: types.ArrayOKArray("hello", "world", "foo", "bar"), + Expected: arrayok.Array("hello", "world", "foo", "bar"), }, { Name: "Nil Value", Input: "null", - Expected: types.ArrayOK[*string]{}, + Expected: arrayok.Type[*string]{}, }, { Name: "Nil Array", Input: `["hello",null,"world"]`, - Expected: func() types.ArrayOK[*string] { - original := types.ArrayOKArray("hello", "", "world") + Expected: func() arrayok.Type[*string] { + original := arrayok.Array("hello", "", "world") original.Array[1] = nil return original }(), @@ -190,7 +190,7 @@ func TestStringUnmarshal(t *testing.T) { for _, tt := range scenarios { t.Run(tt.Name, func(t *testing.T) { - result := types.ArrayOK[*string]{} + result := arrayok.Type[*string]{} err := json.Unmarshal([]byte(tt.Input), &result) Expect(err).To(BeNil()) Expect(result).To(Equal(tt.Expected)) @@ -211,19 +211,19 @@ func TestColorUnmarshal(t *testing.T) { { Name: "A single color", Input: `{"red": 255, "green": 255, "blue": 255}`, - Expected: types.ArrayOKValue(Color{Red: 255, Green: 255, Blue: 255}), + Expected: arrayok.Value(Color{Red: 255, Green: 255, Blue: 255}), }, { Name: "A single color in a list", Input: `[{"red": 255, "green": 255, "blue": 255}]`, - Expected: types.ArrayOK[*Color]{ + Expected: arrayok.Type[*Color]{ Array: []*Color{{Red: 255, Green: 255, Blue: 255}}, }, }, { Name: "Multiple colors", Input: `[{"red": 255, "green": 255, "blue": 255}, {"red": 0, "green": 0, "blue": 0}, {"red": 0, "green": 255, "blue": 0}]`, - Expected: types.ArrayOK[*Color]{ + Expected: arrayok.Type[*Color]{ Array: []*Color{ {Red: 255, Green: 255, Blue: 255}, {Red: 0, Green: 0, Blue: 0}, @@ -234,12 +234,12 @@ func TestColorUnmarshal(t *testing.T) { { Name: "Nil Value", Input: "null", - Expected: types.ArrayOK[*Color]{}, + Expected: arrayok.Type[*Color]{}, }, { Name: "Nil Array", Input: `[{"red": 255, "green": 255, "blue": 255}, null, {"red": 0, "green": 0, "blue": 0}]`, - Expected: types.ArrayOK[*Color]{ + Expected: arrayok.Type[*Color]{ Array: []*Color{ {Red: 255, Green: 255, Blue: 255}, nil, @@ -251,7 +251,7 @@ func TestColorUnmarshal(t *testing.T) { for _, tt := range scenarios { t.Run(tt.Name, func(t *testing.T) { - result := types.ArrayOK[*Color]{} + result := arrayok.Type[*Color]{} err := json.Unmarshal([]byte(tt.Input), &result) Expect(err).To(BeNil()) Expect(result).To(Equal(tt.Expected)) @@ -265,19 +265,19 @@ func TestColorMarshal(t *testing.T) { scenarios := []TestMarshallScenario[*Color]{ { Name: "A single color", - Input: types.ArrayOKValue(Color{Red: 255, Green: 255, Blue: 255}), + Input: arrayok.Value(Color{Red: 255, Green: 255, Blue: 255}), Expected: `{"red":255,"green":255,"blue":255}`, }, { Name: "A single color in a list", - Input: types.ArrayOK[*Color]{ + Input: arrayok.Type[*Color]{ Array: []*Color{{Red: 255, Green: 255, Blue: 255}}, }, Expected: `[{"red":255,"green":255,"blue":255}]`, }, { Name: "Multiple colors", - Input: types.ArrayOK[*Color]{ + Input: arrayok.Type[*Color]{ Array: []*Color{ {Red: 255, Green: 255, Blue: 255}, {Red: 0, Green: 0, Blue: 0}, @@ -288,12 +288,12 @@ func TestColorMarshal(t *testing.T) { }, { Name: "Nil Value", - Input: types.ArrayOK[*Color]{}, + Input: arrayok.Type[*Color]{}, Expected: "null", }, { Name: "Nil Array", - Input: types.ArrayOK[*Color]{ + Input: arrayok.Type[*Color]{ Array: []*Color{ {Red: 255, Green: 255, Blue: 255}, nil, @@ -328,11 +328,11 @@ func TestNestedArrayOKUnmarshal(t *testing.T) { { Name: "Nested ArrayOK within another struct", Input: struct { - Name string `json:"name"` - Colors *types.ArrayOK[Color] `json:"colors"` + Name string `json:"name"` + Colors *arrayok.Type[Color] `json:"colors"` }{ Name: "Test", - Colors: &types.ArrayOK[Color]{ + Colors: &arrayok.Type[Color]{ Array: []Color{ {Red: 255, Green: 255, Blue: 255}, {Red: 0, Green: 0, Blue: 0}, @@ -345,8 +345,8 @@ func TestNestedArrayOKUnmarshal(t *testing.T) { { Name: "Nested ArrayOK within another struct with nil Colors", Input: struct { - Name string `json:"name"` - Colors *types.ArrayOK[Color] `json:"colors"` + Name string `json:"name"` + Colors *arrayok.Type[Color] `json:"colors"` }{ Name: "Test", Colors: nil, @@ -377,11 +377,11 @@ func TestNestedArrayOKMarshal(t *testing.T) { { Name: "Marshal ArrayOK nested within another struct with actual value", Input: struct { - Name string `json:"name"` - Colors *types.ArrayOK[Color] `json:"colors"` + Name string `json:"name"` + Colors *arrayok.Type[Color] `json:"colors"` }{ Name: "Test", - Colors: &types.ArrayOK[Color]{ + Colors: &arrayok.Type[Color]{ Array: []Color{ {Red: 255, Green: 255, Blue: 255}, {Red: 0, Green: 0, Blue: 0}, @@ -394,8 +394,8 @@ func TestNestedArrayOKMarshal(t *testing.T) { { Name: "Marshal ArrayOK nested within another struct with nil value", Input: struct { - Name string `json:"name"` - Colors *types.ArrayOK[Color] `json:"colors"` + Name string `json:"name"` + Colors *arrayok.Type[Color] `json:"colors"` }{ Name: "Test", Colors: nil,