Skip to content

Commit 7f1fd41

Browse files
committed
editTypes for tickformatstops
1 parent db526d9 commit 7f1fd41

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/plots/cartesian/layout_attributes.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,9 +499,10 @@ module.exports = {
499499
valType: 'info_array',
500500
role: 'info',
501501
items: [
502-
{valType: 'any'},
503-
{valType: 'any'}
502+
{valType: 'any', editType: 'ticks'},
503+
{valType: 'any', editType: 'ticks'}
504504
],
505+
editType: 'ticks',
505506
description: [
506507
'range [*min*, *max*], where *min*, *max* - dtick values',
507508
'which describe some zoom level, it is possible to omit *min*',
@@ -512,10 +513,12 @@ module.exports = {
512513
valType: 'string',
513514
dflt: '',
514515
role: 'style',
516+
editType: 'ticks',
515517
description: [
516518
'string - dtickformat for described zoom level, the same as *tickformat*'
517519
].join(' ')
518-
}
520+
},
521+
editType: 'ticks'
519522
},
520523
hoverformat: {
521524
valType: 'string',

src/traces/carpet/axis_attributes.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
var fontAttrs = require('../../plots/font_attributes');
1212
var colorAttrs = require('../../components/color/attributes');
1313
var axesAttrs = require('../../plots/cartesian/layout_attributes');
14+
var overrideAll = require('../../plot_api/edit_types').overrideAll;
1415

1516
module.exports = {
1617
color: {
@@ -291,7 +292,7 @@ module.exports = {
291292
'*%H~%M~%S.%2f* would display *09~15~23.46*'
292293
].join(' ')
293294
},
294-
tickformatstops: axesAttrs.tickformatstops,
295+
tickformatstops: overrideAll(axesAttrs.tickformatstops, 'calc', 'from-root'),
295296
categoryorder: {
296297
valType: 'enumerated',
297298
values: [

0 commit comments

Comments
 (0)