Skip to content

Commit 09022a6

Browse files
emilyklcamdecoster
andauthored
Update src/traces/bar/cross_trace_calc.js
Co-authored-by: Cameron DeCoster <cameron.decoster@gmail.com>
1 parent 2294dbd commit 09022a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traces/bar/cross_trace_calc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,8 +784,8 @@ function estimateAxisPaddingForText(trace, calcTrace) {
784784
if (
785785
trace.orientation === 'v' &&
786786
(trace.text || trace.texttemplate) &&
787-
trace.textposition == 'outside' &&
788-
(trace.textangle == 'auto' || trace.textangle == 0)
787+
trace.textposition === 'outside' &&
788+
(trace.textangle === 'auto' || trace.textangle === 0)
789789
) {
790790
// count number of lines by counting <br> elements
791791
function countLines(text) {

0 commit comments

Comments
 (0)