Skip to content

Commit 165125b

Browse files
committed
fix 3d calendar attributes
1 parent 13cf6b1 commit 165125b

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

src/traces/mesh3d/attributes.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ module.exports = {
3737
'jointly represent the X, Y and Z coordinates of the nth vertex.'
3838
].join(' ')
3939
},
40+
xcalendar: surfaceAtts.xcalendar,
41+
ycalendar: surfaceAtts.ycalendar,
42+
zcalendar: surfaceAtts.zcalendar,
4043

4144
i: {
4245
valType: 'data_array',

src/traces/scatter3d/attributes.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ module.exports = {
6767
},
6868
xcalendar: scatterAttrs.xcalendar,
6969
ycalendar: scatterAttrs.ycalendar,
70-
zcalendar: scatterAttrs.zcalendar,
70+
zcalendar: extendFlat({}, scatterAttrs.xcalendar, {
71+
description: 'Sets the calendar system to use with `z` date data'
72+
}),
7173

7274
text: extendFlat({}, scatterAttrs.text, {
7375
description: [

src/traces/surface/attributes.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ module.exports = {
112112
},
113113
xcalendar: scatterAttrs.xcalendar,
114114
ycalendar: scatterAttrs.ycalendar,
115-
zcalendar: scatterAttrs.zcalendar,
115+
zcalendar: extendFlat({}, scatterAttrs.xcalendar, {
116+
description: 'Sets the calendar system to use with `z` date data'
117+
}),
116118

117119
text: {
118120
valType: 'data_array',

0 commit comments

Comments
 (0)