Skip to content

Commit aa0c116

Browse files
committed
fewer accessor uses
1 parent 30cbaa0 commit aa0c116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/table/calc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = function calc(gd, trace) {
4040
var calcdata = {
4141
key: trace.index,
4242
translateX: domain.x[0] * gd._fullLayout._size.w,
43-
translateY: gd._fullLayout._size.h - domain.y[1] * gd._fullLayout._size.h,
43+
translateY: gd._fullLayout._size.h * (1 - domain.y[1]),
4444
size: gd._fullLayout._size,
4545
width: groupWidth,
4646
height: groupHeight,

0 commit comments

Comments
 (0)