Skip to content

Commit abbca9a

Browse files
committed
no default needed for table line
1 parent 0a9b19c commit abbca9a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/traces/table/attributes.js

+4
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,13 @@ module.exports = overrideAll({
114114
width: {
115115
valType: 'number',
116116
arrayOk: true,
117+
dflt: 1,
117118
role: 'style'
118119
},
119120
color: {
120121
valType: 'color',
121122
arrayOk: true,
123+
dflt: 'grey',
122124
role: 'style'
123125
}
124126
},
@@ -192,11 +194,13 @@ module.exports = overrideAll({
192194
width: {
193195
valType: 'number',
194196
arrayOk: true,
197+
dflt: 1,
195198
role: 'style'
196199
},
197200
color: {
198201
valType: 'color',
199202
arrayOk: true,
203+
dflt: 'grey',
200204
role: 'style'
201205
}
202206
},

test/image/mocks/table_latex_multitrace.json

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
["$$\\cos\\theta=\\pm\\sqrt{\\displaystyle\\frac{1+\\cos\\theta}{2}}$$", "$$\\sin\\theta=\\pm\\sqrt{\\displaystyle\\frac{1-\\cos\\theta}{2}}$$"]
3434
],
3535
"align": ["right", "center", "center"],
36-
"line": {"color": "grey", "width": 1},
3736
"font": {"family": "Arial", "size": 12, "color": ["black"]}
3837
}
3938
},

0 commit comments

Comments
 (0)