Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2k
Support adding text labels to lines and shapes#6454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
7ee2e85932fa651d0e471e46e1bc60823dc2f8c810e405293e31de9e0bcfff39972dc96d5709a072edf68bee9798528561b4a457697ee8c4674abd83743de4c3cc5ed45a0564b8085c28c0476e95dd9b658e39cb488318fc8d20f2dad6ea53134869f17e21801ef185d8c47905f39a621ab9e24b9ea2511f366a8f1087f3f1570cfbaec66dd83e0cda91d12f4948d67a5e19d3e55953e44d5f085424ac58769cfff192a167ca5cf8822fe0dd50da338cec65136771a83f9727a9a4a121e493873a17a315d9bef04f54f102f642a52dfb608ec20370afeb2f3811b3421ea9493e52463fa394b48f1325b7c63bb5d961e3df740933d08d35f6ed5d1927c34d6deffea962ebe85c4d113bcfc703c11468363ecdf2d379eb7c903d2c792394555ceaf270d095561fb0b8ab1d927b6aFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -301,7 +301,7 @@ module.exports = templatedArray('shape', { | ||
| dflt: 3, | ||
emilykl marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| min: 0, | ||
| editType: 'arraydraw', | ||
| description: 'Sets padding (in px) between edge of label andedge of shape.' | ||
| }, | ||
| editType: 'arraydraw' | ||
| }, | ||
archmoj marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -3580,7 +3580,7 @@ | ||
| "editType": "none", | ||
| "valType": "color" | ||
| }, | ||
| "description": "Sets thenewshape label text font.", | ||
| "editType": "none", | ||
| "family": { | ||
| "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", | ||
| @@ -3597,15 +3597,15 @@ | ||
| } | ||
| }, | ||
| "padding": { | ||
| "description": "Sets padding (in px) between edge of label andedge of new shape.", | ||
| "dflt": 3, | ||
| "editType": "none", | ||
| "min": 0, | ||
| "valType": "number" | ||
| }, | ||
| "role": "object", | ||
| "text": { | ||
| "description": "Sets the text to display withthe newshape.", | ||
| "dflt": "", | ||
| "editType": "none", | ||
| "valType": "string" | ||
| @@ -3617,7 +3617,7 @@ | ||
| "valType": "angle" | ||
| }, | ||
| "textposition": { | ||
| "description": "Sets the position of the label text relative to thenewshape. Supported values for rectangles, circles and paths are `top left`, `top center`, `top right`, `middle left`, `middle center`, `middle right`, `bottom left`, `bottom center`, and `bottom right`. Supported values for lines are `start`, `middle`, and `end`. Default: `middle center` for rectangles, circles, and paths; `middle` for lines.", | ||
| "editType": "none", | ||
| "valType": "enumerated", | ||
| "values": [ | ||
| @@ -3636,7 +3636,7 @@ | ||
| ] | ||
LiamConnors marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| }, | ||
| "xanchor": { | ||
| "description": "Sets the label's horizontal position anchor This anchor binds the specified `label.textposition` to the *left*, *center* or *right* of the label text. For example, if `label.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 thenewshape.", | ||
| "dflt": "auto", | ||
| "editType": "none", | ||
| "valType": "enumerated", | ||
| @@ -3648,7 +3648,7 @@ | ||
| ] | ||
| }, | ||
| "yanchor": { | ||
| "description": "Sets the label's vertical position anchor This anchor binds the specified `label.textposition` to the *top*, *middle* or *bottom* of the label text. For example, if `label.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 thenewshape.", | ||
| "editType": "none", | ||
| "valType": "enumerated", | ||
| "values": [ | ||
| @@ -7218,7 +7218,7 @@ | ||
| } | ||
| }, | ||
| "padding": { | ||
| "description": "Sets padding (in px) between edge of label andedge of shape.", | ||
| "dflt": 3, | ||
| "editType": "arraydraw", | ||
| "min": 0, | ||