Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d097d6a

Browse files
committed
lint
1 parent aaa3e3c commit d097d6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plots/cartesian/axis_defaults.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ module.exports = function handleAxisDefaults(containerIn, containerOut, coerce,
148148
function setAutoType(ax, data) {
149149
// new logic: let people specify any type they want,
150150
// only autotype if type is '-'
151-
if(ax.type!=='-') return;
151+
if(ax.type !== '-') return;
152152

153153
var id = ax._id,
154154
axLetter = id.charAt(0);
@@ -163,7 +163,7 @@ function setAutoType(ax, data) {
163163
// should always default to a linear axis
164164
if(d0.type==='histogram' &&
165165
axLetter === {v: 'y', h: 'x'}[d0.orientation || 'v']) {
166-
ax.type='linear';
166+
ax.type = 'linear';
167167
return;
168168
}
169169

0 commit comments

Comments
 (0)