![]() When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. Set to a dash type string ("solid", "dot", "dash", "longdash", "dashdot", or "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). Specifies whether shapes are drawn below or above traces. Type: enumerated, one of ( "below" | "above" ) For example, if `textposition` is set to "top right" and `yanchor` to "top" then the top-most portion of the label text lines up with the top-most edge of the shape. Sets the label's vertical position anchor This anchor binds the specified `textposition` to the "top", "middle" or "bottom" of the label text. Type: enumerated, one of ( "top" | "middle" | "bottom" ) For example, if `textposition` is set to "top right" and `xanchor` to "right" then the right-most portion of the label text lines up with the right-most edge of the shape. Sets the label's horizontal position anchor This anchor binds the specified `textposition` to the "left", "center" or "right" of the label text. Type: enumerated, one of ( "auto" | "left" | "center" | "right" ) Finally, the template string has access to variables `x0`, `x1`, `y0`, `y1`, `slope`, `dx`, `dy`, `width`, `height`, `length`, `xcenter` and `ycenter`. ![]() For date axes, x/y coordinate variables and center variables use datetimes, while all other variable values use values in ms. Variables are inserted using % meters per second." For log axes, variable values are given in log units. Template string used for rendering the shape's label. Default: "middle center" for rectangles, circles, and paths "middle" for lines.Ĭode: fig.update_shapes(label_texttemplate=) Supported values for lines are "start", "middle", and "end". Supported values for rectangles, circles and paths are "top left", "top center", "top right", "middle left", "middle center", "middle right", "bottom left", "bottom center", and "bottom right". Sets the position of the label text relative to the shape. Type: enumerated, one of ( "top left" | "top center" | "top right" | "middle left" | "middle center" | "middle right" | "bottom left" | "bottom center" | "bottom right" | "start" | "middle" | "end" ) For all other shapes, angle "auto" is horizontal.Ĭode: fig.update_shapes(label_textposition=) For lines, angle "auto" is the same angle as the line. Sets the angle at which the label text is drawn with respect to the horizontal. Sets padding (in px) between edge of label and edge of shape.Ĭode: fig.update_shapes(label_textangle=) These include "Arial", "Balto", "Courier New", "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", "Raleway", "Times New Roman".Ĭode: fig.update_shapes(label_font_size=) The Chart Studio Cloud (at or on-premise) generates images on a server, where only a select number of fonts are installed and supported. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The web browser will only be able to apply a font if it is available on the system which it operates. HTML font family - the typeface that will be applied by the web browser. Type: dict containing one or more of the keys listed below.Ĭode: fig.update_shapes(label_font=dict(.))Ĭode: fig.update_shapes(label_font_color=)Ĭode: fig.update_shapes(label_font_family=) Type: enumerated, one of ( "evenodd" | "nonzero" )ĭetermines which regions of complex paths constitute the interior. Sets the color filling the shape's interior. Has no effect when the older editable shapes mode is enabled via `config.editable` or ``. Type: list of dict where each dict has one or more of the keys listed below.ĭetermines whether the shape could be activated for edit or not.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |