mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
fix: one-var
``` /Users/1ambda/github/apache/apache-zeppelin/zeppelin-master/zeppelin-web/src/app/visualization/builtins/visualization-scatterchart.js (1/0) ✖ 210:7 Split initialized 'var' declarations into multiple statements one-var ```
This commit is contained in:
parent
7aa4b1aae6
commit
1de9a8d2f8
2 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,6 @@
|
|||
"process": false
|
||||
},
|
||||
"rules": {
|
||||
"one-var": 0,
|
||||
"prefer-rest-params": 0,
|
||||
"no-useless-constructor": 0,
|
||||
"no-multi-spaces": 0,
|
||||
|
|
|
|||
|
|
@ -207,7 +207,8 @@ export default class ScatterchartVisualization extends Nvd3ChartVisualization {
|
|||
|
||||
|
||||
// TODO remove epsilon jitter after bump to nvd3 > 1.8.5
|
||||
var xval, yval = 0;
|
||||
var xval = 0
|
||||
var yval = 0;
|
||||
if ( xAxis ){
|
||||
xval = (isNaN(xValue) ? rowNameIndex[xValue] : parseFloat(xValue)) + Math.random() * epsilon;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue