Skip to content

Commit 4088ee8

Browse files
committed
Fix bad plot schema attrs
1 parent acff100 commit 4088ee8

File tree

6 files changed

+9
-15
lines changed

6 files changed

+9
-15
lines changed

src/plots/cartesian/layout_attributes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ var constants = require('./constants');
1818
module.exports = {
1919
visible: {
2020
valType: 'boolean',
21+
role: 'info',
2122
description: [
2223
'A single toggle to hide the axis while preserving interaction like dragging.',
2324
'Default is true when a cheater plot is present on the axis, otherwise',

src/plots/gl3d/layout/axis_attributes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ var extendFlat = require('../../../lib/extend').extendFlat;
1616
module.exports = {
1717
visible: {
1818
valType: 'boolean',
19+
role: 'info',
1920
description: [
2021
'A single toggle to hide the axis while preserving interaction like dragging.',
2122
'Default is true when a cheater plot is present on the axis, otherwise',

src/traces/carpet/attributes.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = {
3333
},
3434
y: {
3535
valType: 'data_array',
36-
descripotion: 'A two dimensional array of y coordinates at each carpet point.'
36+
description: 'A two dimensional array of y coordinates at each carpet point.'
3737
},
3838
a: {
3939
valType: 'data_array',
@@ -63,7 +63,7 @@ module.exports = {
6363
},
6464
b: {
6565
valType: 'data_array',
66-
descripotion: 'A two dimensional array of y coordinates at each carpet point.'
66+
description: 'A two dimensional array of y coordinates at each carpet point.'
6767
},
6868
b0: {
6969
valType: 'number',
@@ -87,6 +87,7 @@ module.exports = {
8787
},
8888
cheaterslope: {
8989
valType: 'number',
90+
role: 'info',
9091
dflt: 1,
9192
description: [
9293
'The shift applied to each successive row of data in creating a cheater plot.',

src/traces/carpet/axis_attributes.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -349,14 +349,6 @@ module.exports = {
349349
role: 'style',
350350
description: 'Sets a axis label suffix.'
351351
},
352-
showstartlabel: {
353-
valType: 'boolean',
354-
dflt: true,
355-
},
356-
showendlabel: {
357-
valType: 'boolean',
358-
dflt: true,
359-
},
360352
labelfont: extendFlat({}, fontAttrs, {
361353
description: 'Sets the label font.'
362354
}),
@@ -464,14 +456,14 @@ module.exports = {
464456
description: 'Sets the line color of the end line.'
465457
},
466458
tick0: {
467-
valType: 'any',
459+
valType: 'integer',
468460
min: 0,
469461
dflt: 0,
470462
role: 'info',
471463
description: 'The starting index of grid lines along the axis'
472464
},
473465
dtick: {
474-
valType: 'any',
466+
valType: 'integer',
475467
min: 1,
476468
dflt: 1,
477469
role: 'info',

src/traces/carpet/axis_defaults.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ module.exports = function handleAxisDefaults(containerIn, containerOut, options)
9494
// coerce('gridoffset');
9595
// coerce('gridstep');
9696

97-
coerce('showstartlabel');
98-
coerce('showendlabel');
99-
10097
coerce('labelpadding');
10198

10299
containerOut._hovertitle = letter;

src/traces/contourcarpet/attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ module.exports = extendFlat({}, {
121121
operation: {
122122
valType: 'enumerated',
123123
values: [].concat(constants.INEQUALITY_OPS).concat(constants.INTERVAL_OPS).concat(constants.SET_OPS),
124+
role: 'info',
124125
description: [
125126
'Sets the filter operation.',
126127

@@ -149,6 +150,7 @@ module.exports = extendFlat({}, {
149150
value: {
150151
valType: 'any',
151152
dflt: 0,
153+
role: 'info',
152154
description: [
153155
'Sets the value or values by which to filter by.',
154156

0 commit comments

Comments
 (0)