@@ -42,11 +42,11 @@ module.exports = {
42
42
title : {
43
43
valType : 'string' ,
44
44
role : 'info' ,
45
- editType : 'ticks' ,
45
+ editType : 'ticks+margins ' ,
46
46
description : 'Sets the title of this axis.'
47
47
} ,
48
48
titlefont : fontAttrs ( {
49
- editType : 'ticks' ,
49
+ editType : 'ticks+margins ' ,
50
50
description : [
51
51
'Sets this axis\' title font.'
52
52
] . join ( ' ' )
@@ -100,10 +100,10 @@ module.exports = {
100
100
valType : 'info_array' ,
101
101
role : 'info' ,
102
102
items : [
103
- { valType : 'any' , editType : 'plot' , impliedEdits : { '^autorange' : false } } ,
104
- { valType : 'any' , editType : 'plot' , impliedEdits : { '^autorange' : false } }
103
+ { valType : 'any' , editType : 'plot+margins ' , impliedEdits : { '^autorange' : false } } ,
104
+ { valType : 'any' , editType : 'plot+margins ' , impliedEdits : { '^autorange' : false } }
105
105
] ,
106
- editType : 'plot' ,
106
+ editType : 'plot+margins ' ,
107
107
impliedEdits : { 'autorange' : false } ,
108
108
description : [
109
109
'Sets the range of this axis.' ,
@@ -198,7 +198,7 @@ module.exports = {
198
198
valType : 'enumerated' ,
199
199
values : [ 'auto' , 'linear' , 'array' ] ,
200
200
role : 'info' ,
201
- editType : 'ticks' ,
201
+ editType : 'ticks+margins ' ,
202
202
impliedEdits : { tick0 : undefined , dtick : undefined } ,
203
203
description : [
204
204
'Sets the tick mode for this axis.' ,
@@ -216,7 +216,7 @@ module.exports = {
216
216
min : 0 ,
217
217
dflt : 0 ,
218
218
role : 'style' ,
219
- editType : 'ticks' ,
219
+ editType : 'ticks+margins ' ,
220
220
description : [
221
221
'Specifies the maximum number of ticks for the particular axis.' ,
222
222
'The actual number of ticks will be chosen automatically to be' ,
@@ -227,7 +227,7 @@ module.exports = {
227
227
tick0 : {
228
228
valType : 'any' ,
229
229
role : 'style' ,
230
- editType : 'ticks' ,
230
+ editType : 'ticks+margins ' ,
231
231
impliedEdits : { tickmode : 'linear' } ,
232
232
description : [
233
233
'Sets the placement of the first tick on this axis.' ,
@@ -243,7 +243,7 @@ module.exports = {
243
243
dtick : {
244
244
valType : 'any' ,
245
245
role : 'style' ,
246
- editType : 'ticks' ,
246
+ editType : 'ticks+margins ' ,
247
247
impliedEdits : { tickmode : 'linear' } ,
248
248
description : [
249
249
'Sets the step in-between ticks on this axis. Use with `tick0`.' ,
@@ -269,7 +269,7 @@ module.exports = {
269
269
} ,
270
270
tickvals : {
271
271
valType : 'data_array' ,
272
- editType : 'ticks' ,
272
+ editType : 'ticks+margins ' ,
273
273
description : [
274
274
'Sets the values at which ticks on this axis appear.' ,
275
275
'Only has an effect if `tickmode` is set to *array*.' ,
@@ -278,7 +278,7 @@ module.exports = {
278
278
} ,
279
279
ticktext : {
280
280
valType : 'data_array' ,
281
- editType : 'ticks' ,
281
+ editType : 'ticks+margins ' ,
282
282
description : [
283
283
'Sets the text displayed at the ticks position via `tickvals`.' ,
284
284
'Only has an effect if `tickmode` is set to *array*.' ,
@@ -289,7 +289,7 @@ module.exports = {
289
289
valType : 'enumerated' ,
290
290
values : [ 'outside' , 'inside' , '' ] ,
291
291
role : 'style' ,
292
- editType : 'ticks' ,
292
+ editType : 'ticks+margins ' ,
293
293
description : [
294
294
'Determines whether ticks are drawn or not.' ,
295
295
'If **, this axis\' ticks are not drawn.' ,
@@ -341,9 +341,19 @@ module.exports = {
341
341
valType : 'boolean' ,
342
342
dflt : true ,
343
343
role : 'style' ,
344
- editType : 'ticks' ,
344
+ editType : 'ticks+margins ' ,
345
345
description : 'Determines whether or not the tick labels are drawn.'
346
346
} ,
347
+ automargin : {
348
+ valType : 'boolean' ,
349
+ dflt : false ,
350
+ role : 'style' ,
351
+ editType : 'ticks+margins' ,
352
+ description : [
353
+ 'Determines whether long tick labels automatically grow the figure' ,
354
+ 'margins.'
355
+ ] . join ( ' ' )
356
+ } ,
347
357
showspikes : {
348
358
valType : 'boolean' ,
349
359
dflt : false ,
@@ -396,14 +406,14 @@ module.exports = {
396
406
description : 'Determines whether spikelines are stuck to the cursor or to the closest datapoints.'
397
407
} ,
398
408
tickfont : fontAttrs ( {
399
- editType : 'ticks' ,
409
+ editType : 'ticks+margins ' ,
400
410
description : 'Sets the tick font.'
401
411
} ) ,
402
412
tickangle : {
403
413
valType : 'angle' ,
404
414
dflt : 'auto' ,
405
415
role : 'style' ,
406
- editType : 'ticks' ,
416
+ editType : 'ticks+margins ' ,
407
417
description : [
408
418
'Sets the angle of the tick labels with respect to the horizontal.' ,
409
419
'For example, a `tickangle` of -90 draws the tick labels' ,
@@ -414,15 +424,15 @@ module.exports = {
414
424
valType : 'string' ,
415
425
dflt : '' ,
416
426
role : 'style' ,
417
- editType : 'ticks' ,
427
+ editType : 'ticks+margins ' ,
418
428
description : 'Sets a tick label prefix.'
419
429
} ,
420
430
showtickprefix : {
421
431
valType : 'enumerated' ,
422
432
values : [ 'all' , 'first' , 'last' , 'none' ] ,
423
433
dflt : 'all' ,
424
434
role : 'style' ,
425
- editType : 'ticks' ,
435
+ editType : 'ticks+margins ' ,
426
436
description : [
427
437
'If *all*, all tick labels are displayed with a prefix.' ,
428
438
'If *first*, only the first tick is displayed with a prefix.' ,
@@ -434,23 +444,23 @@ module.exports = {
434
444
valType : 'string' ,
435
445
dflt : '' ,
436
446
role : 'style' ,
437
- editType : 'ticks' ,
447
+ editType : 'ticks+margins ' ,
438
448
description : 'Sets a tick label suffix.'
439
449
} ,
440
450
showticksuffix : {
441
451
valType : 'enumerated' ,
442
452
values : [ 'all' , 'first' , 'last' , 'none' ] ,
443
453
dflt : 'all' ,
444
454
role : 'style' ,
445
- editType : 'ticks' ,
455
+ editType : 'ticks+margins ' ,
446
456
description : 'Same as `showtickprefix` but for tick suffixes.'
447
457
} ,
448
458
showexponent : {
449
459
valType : 'enumerated' ,
450
460
values : [ 'all' , 'first' , 'last' , 'none' ] ,
451
461
dflt : 'all' ,
452
462
role : 'style' ,
453
- editType : 'ticks' ,
463
+ editType : 'ticks+margins ' ,
454
464
description : [
455
465
'If *all*, all exponents are shown besides their significands.' ,
456
466
'If *first*, only the exponent of the first tick is shown.' ,
@@ -463,7 +473,7 @@ module.exports = {
463
473
values : [ 'none' , 'e' , 'E' , 'power' , 'SI' , 'B' ] ,
464
474
dflt : 'B' ,
465
475
role : 'style' ,
466
- editType : 'ticks' ,
476
+ editType : 'ticks+margins ' ,
467
477
description : [
468
478
'Determines a formatting rule for the tick exponents.' ,
469
479
'For example, consider the number 1,000,000,000.' ,
@@ -479,7 +489,7 @@ module.exports = {
479
489
valType : 'boolean' ,
480
490
dflt : false ,
481
491
role : 'style' ,
482
- editType : 'ticks' ,
492
+ editType : 'ticks+margins ' ,
483
493
description : [
484
494
'If "true", even 4-digit integers are separated'
485
495
] . join ( ' ' )
@@ -488,7 +498,7 @@ module.exports = {
488
498
valType : 'string' ,
489
499
dflt : '' ,
490
500
role : 'style' ,
491
- editType : 'ticks' ,
501
+ editType : 'ticks+margins ' ,
492
502
description : [
493
503
'Sets the tick label formatting rule using d3 formatting mini-languages' ,
494
504
'which are very similar to those in Python. For numbers, see:' ,
@@ -507,10 +517,10 @@ module.exports = {
507
517
valType : 'info_array' ,
508
518
role : 'info' ,
509
519
items : [
510
- { valType : 'any' , editType : 'ticks' } ,
511
- { valType : 'any' , editType : 'ticks' }
520
+ { valType : 'any' , editType : 'ticks+margins ' } ,
521
+ { valType : 'any' , editType : 'ticks+margins ' }
512
522
] ,
513
- editType : 'ticks' ,
523
+ editType : 'ticks+margins ' ,
514
524
description : [
515
525
'range [*min*, *max*], where *min*, *max* - dtick values' ,
516
526
'which describe some zoom level, it is possible to omit *min*' ,
@@ -521,12 +531,12 @@ module.exports = {
521
531
valType : 'string' ,
522
532
dflt : '' ,
523
533
role : 'style' ,
524
- editType : 'ticks' ,
534
+ editType : 'ticks+margins ' ,
525
535
description : [
526
536
'string - dtickformat for described zoom level, the same as *tickformat*'
527
537
] . join ( ' ' )
528
538
} ,
529
- editType : 'ticks'
539
+ editType : 'ticks+margins '
530
540
} ,
531
541
hoverformat : {
532
542
valType : 'string' ,
@@ -628,7 +638,7 @@ module.exports = {
628
638
constants . idRegex . y . toString ( )
629
639
] ,
630
640
role : 'info' ,
631
- editType : 'plot' ,
641
+ editType : 'plot+margins ' ,
632
642
description : [
633
643
'If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to' ,
634
644
'the corresponding opposite-letter axis.' ,
@@ -641,7 +651,7 @@ module.exports = {
641
651
valType : 'enumerated' ,
642
652
values : [ 'top' , 'bottom' , 'left' , 'right' ] ,
643
653
role : 'info' ,
644
- editType : 'plot' ,
654
+ editType : 'plot+margins ' ,
645
655
description : [
646
656
'Determines whether a x (y) axis is positioned' ,
647
657
'at the *bottom* (*left*) or *top* (*right*)' ,
@@ -685,11 +695,11 @@ module.exports = {
685
695
valType : 'info_array' ,
686
696
role : 'info' ,
687
697
items : [
688
- { valType : 'number' , min : 0 , max : 1 , editType : 'plot' } ,
689
- { valType : 'number' , min : 0 , max : 1 , editType : 'plot' }
698
+ { valType : 'number' , min : 0 , max : 1 , editType : 'plot+margins ' } ,
699
+ { valType : 'number' , min : 0 , max : 1 , editType : 'plot+margins ' }
690
700
] ,
691
701
dflt : [ 0 , 1 ] ,
692
- editType : 'plot' ,
702
+ editType : 'plot+margins ' ,
693
703
description : [
694
704
'Sets the domain of this axis (in plot fraction).'
695
705
] . join ( ' ' )
@@ -700,7 +710,7 @@ module.exports = {
700
710
max : 1 ,
701
711
dflt : 0 ,
702
712
role : 'style' ,
703
- editType : 'plot' ,
713
+ editType : 'plot+margins ' ,
704
714
description : [
705
715
'Sets the position of this axis in the plotting space' ,
706
716
'(in normalized coordinates).' ,
@@ -744,7 +754,7 @@ module.exports = {
744
754
autotick : {
745
755
valType : 'boolean' ,
746
756
role : 'info' ,
747
- editType : 'ticks' ,
757
+ editType : 'ticks+margins ' ,
748
758
description : [
749
759
'Obsolete.' ,
750
760
'Set `tickmode` to *auto* for old `autotick` *true* behavior.' ,
0 commit comments