@@ -44,7 +44,6 @@ function arrowCoordinateDescription(axis, lower, upper) {
44
44
module . exports = templatedArray ( 'annotation' , {
45
45
visible : {
46
46
valType : 'boolean' ,
47
- role : 'info' ,
48
47
dflt : true ,
49
48
editType : 'calc+arraydraw' ,
50
49
description : [
@@ -54,7 +53,6 @@ module.exports = templatedArray('annotation', {
54
53
55
54
text : {
56
55
valType : 'string' ,
57
- role : 'info' ,
58
56
editType : 'calc+arraydraw' ,
59
57
description : [
60
58
'Sets the text associated with this annotation.' ,
@@ -67,7 +65,6 @@ module.exports = templatedArray('annotation', {
67
65
textangle : {
68
66
valType : 'angle' ,
69
67
dflt : 0 ,
70
- role : 'style' ,
71
68
editType : 'calc+arraydraw' ,
72
69
description : [
73
70
'Sets the angle at which the `text` is drawn' ,
@@ -83,7 +80,6 @@ module.exports = templatedArray('annotation', {
83
80
valType : 'number' ,
84
81
min : 1 ,
85
82
dflt : null ,
86
- role : 'style' ,
87
83
editType : 'calc+arraydraw' ,
88
84
description : [
89
85
'Sets an explicit width for the text box. null (default) lets the' ,
@@ -95,7 +91,6 @@ module.exports = templatedArray('annotation', {
95
91
valType : 'number' ,
96
92
min : 1 ,
97
93
dflt : null ,
98
- role : 'style' ,
99
94
editType : 'calc+arraydraw' ,
100
95
description : [
101
96
'Sets an explicit height for the text box. null (default) lets the' ,
@@ -107,15 +102,13 @@ module.exports = templatedArray('annotation', {
107
102
min : 0 ,
108
103
max : 1 ,
109
104
dflt : 1 ,
110
- role : 'style' ,
111
105
editType : 'arraydraw' ,
112
106
description : 'Sets the opacity of the annotation (text + arrow).'
113
107
} ,
114
108
align : {
115
109
valType : 'enumerated' ,
116
110
values : [ 'left' , 'center' , 'right' ] ,
117
111
dflt : 'center' ,
118
- role : 'style' ,
119
112
editType : 'arraydraw' ,
120
113
description : [
121
114
'Sets the horizontal alignment of the `text` within the box.' ,
@@ -128,7 +121,6 @@ module.exports = templatedArray('annotation', {
128
121
valType : 'enumerated' ,
129
122
values : [ 'top' , 'middle' , 'bottom' ] ,
130
123
dflt : 'middle' ,
131
- role : 'style' ,
132
124
editType : 'arraydraw' ,
133
125
description : [
134
126
'Sets the vertical alignment of the `text` within the box.' ,
@@ -139,14 +131,12 @@ module.exports = templatedArray('annotation', {
139
131
bgcolor : {
140
132
valType : 'color' ,
141
133
dflt : 'rgba(0,0,0,0)' ,
142
- role : 'style' ,
143
134
editType : 'arraydraw' ,
144
135
description : 'Sets the background color of the annotation.'
145
136
} ,
146
137
bordercolor : {
147
138
valType : 'color' ,
148
139
dflt : 'rgba(0,0,0,0)' ,
149
- role : 'style' ,
150
140
editType : 'arraydraw' ,
151
141
description : [
152
142
'Sets the color of the border enclosing the annotation `text`.'
@@ -156,7 +146,6 @@ module.exports = templatedArray('annotation', {
156
146
valType : 'number' ,
157
147
min : 0 ,
158
148
dflt : 1 ,
159
- role : 'style' ,
160
149
editType : 'calc+arraydraw' ,
161
150
description : [
162
151
'Sets the padding (in px) between the `text`' ,
@@ -167,7 +156,6 @@ module.exports = templatedArray('annotation', {
167
156
valType : 'number' ,
168
157
min : 0 ,
169
158
dflt : 1 ,
170
- role : 'style' ,
171
159
editType : 'calc+arraydraw' ,
172
160
description : [
173
161
'Sets the width (in px) of the border enclosing' ,
@@ -178,7 +166,6 @@ module.exports = templatedArray('annotation', {
178
166
showarrow : {
179
167
valType : 'boolean' ,
180
168
dflt : true ,
181
- role : 'style' ,
182
169
editType : 'calc+arraydraw' ,
183
170
description : [
184
171
'Determines whether or not the annotation is drawn with an arrow.' ,
@@ -188,7 +175,6 @@ module.exports = templatedArray('annotation', {
188
175
} ,
189
176
arrowcolor : {
190
177
valType : 'color' ,
191
- role : 'style' ,
192
178
editType : 'arraydraw' ,
193
179
description : 'Sets the color of the annotation arrow.'
194
180
} ,
@@ -197,7 +183,6 @@ module.exports = templatedArray('annotation', {
197
183
min : 0 ,
198
184
max : ARROWPATHS . length ,
199
185
dflt : 1 ,
200
- role : 'style' ,
201
186
editType : 'arraydraw' ,
202
187
description : 'Sets the end annotation arrow head style.'
203
188
} ,
@@ -206,7 +191,6 @@ module.exports = templatedArray('annotation', {
206
191
min : 0 ,
207
192
max : ARROWPATHS . length ,
208
193
dflt : 1 ,
209
- role : 'style' ,
210
194
editType : 'arraydraw' ,
211
195
description : 'Sets the start annotation arrow head style.'
212
196
} ,
@@ -215,15 +199,13 @@ module.exports = templatedArray('annotation', {
215
199
flags : [ 'end' , 'start' ] ,
216
200
extras : [ 'none' ] ,
217
201
dflt : 'end' ,
218
- role : 'style' ,
219
202
editType : 'arraydraw' ,
220
203
description : 'Sets the annotation arrow head position.'
221
204
} ,
222
205
arrowsize : {
223
206
valType : 'number' ,
224
207
min : 0.3 ,
225
208
dflt : 1 ,
226
- role : 'style' ,
227
209
editType : 'calc+arraydraw' ,
228
210
description : [
229
211
'Sets the size of the end annotation arrow head, relative to `arrowwidth`.' ,
@@ -234,7 +216,6 @@ module.exports = templatedArray('annotation', {
234
216
valType : 'number' ,
235
217
min : 0.3 ,
236
218
dflt : 1 ,
237
- role : 'style' ,
238
219
editType : 'calc+arraydraw' ,
239
220
description : [
240
221
'Sets the size of the start annotation arrow head, relative to `arrowwidth`.' ,
@@ -244,15 +225,13 @@ module.exports = templatedArray('annotation', {
244
225
arrowwidth : {
245
226
valType : 'number' ,
246
227
min : 0.1 ,
247
- role : 'style' ,
248
228
editType : 'calc+arraydraw' ,
249
229
description : 'Sets the width (in px) of annotation arrow line.'
250
230
} ,
251
231
standoff : {
252
232
valType : 'number' ,
253
233
min : 0 ,
254
234
dflt : 0 ,
255
- role : 'style' ,
256
235
editType : 'calc+arraydraw' ,
257
236
description : [
258
237
'Sets a distance, in pixels, to move the end arrowhead away from the' ,
@@ -266,7 +245,6 @@ module.exports = templatedArray('annotation', {
266
245
valType : 'number' ,
267
246
min : 0 ,
268
247
dflt : 0 ,
269
- role : 'style' ,
270
248
editType : 'calc+arraydraw' ,
271
249
description : [
272
250
'Sets a distance, in pixels, to move the start arrowhead away from the' ,
@@ -278,15 +256,13 @@ module.exports = templatedArray('annotation', {
278
256
} ,
279
257
ax : {
280
258
valType : 'any' ,
281
- role : 'info' ,
282
259
editType : 'calc+arraydraw' ,
283
260
description : [
284
261
arrowCoordinateDescription ( 'x' , 'left' , 'right' )
285
262
] . join ( ' ' )
286
263
} ,
287
264
ay : {
288
265
valType : 'any' ,
289
- role : 'info' ,
290
266
editType : 'calc+arraydraw' ,
291
267
description : [
292
268
arrowCoordinateDescription ( 'y' , 'top' , 'bottom' )
@@ -299,7 +275,6 @@ module.exports = templatedArray('annotation', {
299
275
'pixel' ,
300
276
cartesianConstants . idRegex . x . toString ( )
301
277
] ,
302
- role : 'info' ,
303
278
editType : 'calc' ,
304
279
description : [
305
280
'Indicates in what coordinates the tail of the' ,
@@ -315,7 +290,6 @@ module.exports = templatedArray('annotation', {
315
290
'pixel' ,
316
291
cartesianConstants . idRegex . y . toString ( )
317
292
] ,
318
- role : 'info' ,
319
293
editType : 'calc' ,
320
294
description : [
321
295
'Indicates in what coordinates the tail of the' ,
@@ -331,7 +305,6 @@ module.exports = templatedArray('annotation', {
331
305
'paper' ,
332
306
cartesianConstants . idRegex . x . toString ( )
333
307
] ,
334
- role : 'info' ,
335
308
editType : 'calc' ,
336
309
description : [
337
310
'Sets the annotation\'s x coordinate axis.' ,
@@ -340,7 +313,6 @@ module.exports = templatedArray('annotation', {
340
313
} ,
341
314
x : {
342
315
valType : 'any' ,
343
- role : 'info' ,
344
316
editType : 'calc+arraydraw' ,
345
317
description : [
346
318
'Sets the annotation\'s x position.' ,
@@ -358,7 +330,6 @@ module.exports = templatedArray('annotation', {
358
330
valType : 'enumerated' ,
359
331
values : [ 'auto' , 'left' , 'center' , 'right' ] ,
360
332
dflt : 'auto' ,
361
- role : 'info' ,
362
333
editType : 'calc+arraydraw' ,
363
334
description : [
364
335
'Sets the text box\'s horizontal position anchor' ,
@@ -377,7 +348,6 @@ module.exports = templatedArray('annotation', {
377
348
xshift : {
378
349
valType : 'number' ,
379
350
dflt : 0 ,
380
- role : 'style' ,
381
351
editType : 'calc+arraydraw' ,
382
352
description : [
383
353
'Shifts the position of the whole annotation and arrow to the' ,
@@ -390,7 +360,6 @@ module.exports = templatedArray('annotation', {
390
360
'paper' ,
391
361
cartesianConstants . idRegex . y . toString ( )
392
362
] ,
393
- role : 'info' ,
394
363
editType : 'calc' ,
395
364
description : [
396
365
'Sets the annotation\'s y coordinate axis.' ,
@@ -399,7 +368,6 @@ module.exports = templatedArray('annotation', {
399
368
} ,
400
369
y : {
401
370
valType : 'any' ,
402
- role : 'info' ,
403
371
editType : 'calc+arraydraw' ,
404
372
description : [
405
373
'Sets the annotation\'s y position.' ,
@@ -417,7 +385,6 @@ module.exports = templatedArray('annotation', {
417
385
valType : 'enumerated' ,
418
386
values : [ 'auto' , 'top' , 'middle' , 'bottom' ] ,
419
387
dflt : 'auto' ,
420
- role : 'info' ,
421
388
editType : 'calc+arraydraw' ,
422
389
description : [
423
390
'Sets the text box\'s vertical position anchor' ,
@@ -436,7 +403,6 @@ module.exports = templatedArray('annotation', {
436
403
yshift : {
437
404
valType : 'number' ,
438
405
dflt : 0 ,
439
- role : 'style' ,
440
406
editType : 'calc+arraydraw' ,
441
407
description : [
442
408
'Shifts the position of the whole annotation and arrow up' ,
@@ -447,7 +413,6 @@ module.exports = templatedArray('annotation', {
447
413
valType : 'enumerated' ,
448
414
values : [ false , 'onoff' , 'onout' ] ,
449
415
dflt : false ,
450
- role : 'style' ,
451
416
editType : 'arraydraw' ,
452
417
description : [
453
418
'Makes this annotation respond to clicks on the plot.' ,
@@ -466,7 +431,6 @@ module.exports = templatedArray('annotation', {
466
431
} ,
467
432
xclick : {
468
433
valType : 'any' ,
469
- role : 'info' ,
470
434
editType : 'arraydraw' ,
471
435
description : [
472
436
'Toggle this annotation when clicking a data point whose `x` value' ,
@@ -475,7 +439,6 @@ module.exports = templatedArray('annotation', {
475
439
} ,
476
440
yclick : {
477
441
valType : 'any' ,
478
- role : 'info' ,
479
442
editType : 'arraydraw' ,
480
443
description : [
481
444
'Toggle this annotation when clicking a data point whose `y` value' ,
@@ -484,7 +447,6 @@ module.exports = templatedArray('annotation', {
484
447
} ,
485
448
hovertext : {
486
449
valType : 'string' ,
487
- role : 'info' ,
488
450
editType : 'arraydraw' ,
489
451
description : [
490
452
'Sets text to appear when hovering over this annotation.' ,
@@ -494,7 +456,6 @@ module.exports = templatedArray('annotation', {
494
456
hoverlabel : {
495
457
bgcolor : {
496
458
valType : 'color' ,
497
- role : 'style' ,
498
459
editType : 'arraydraw' ,
499
460
description : [
500
461
'Sets the background color of the hover label.' ,
@@ -504,7 +465,6 @@ module.exports = templatedArray('annotation', {
504
465
} ,
505
466
bordercolor : {
506
467
valType : 'color' ,
507
- role : 'style' ,
508
468
editType : 'arraydraw' ,
509
469
description : [
510
470
'Sets the border color of the hover label.' ,
@@ -524,7 +484,6 @@ module.exports = templatedArray('annotation', {
524
484
} ,
525
485
captureevents : {
526
486
valType : 'boolean' ,
527
- role : 'info' ,
528
487
editType : 'arraydraw' ,
529
488
description : [
530
489
'Determines whether the annotation text box captures mouse move' ,
@@ -540,7 +499,6 @@ module.exports = templatedArray('annotation', {
540
499
_deprecated : {
541
500
ref : {
542
501
valType : 'string' ,
543
- role : 'info' ,
544
502
editType : 'calc' ,
545
503
description : [
546
504
'Obsolete. Set `xref` and `yref` separately instead.'
0 commit comments