mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
fix: space-before-blocks
``` /Users/1ambda/github/apache/apache-zeppelin/zeppelin-master/zeppelin-web/src/app/visualization/builtins/visualization-scatterchart.js (6/0) ✖ 81:30 Missing space before opening brace space-before-blocks ✖ 212:17 Missing space before opening brace space-before-blocks ✖ 215:17 Missing space before opening brace space-before-blocks ✖ 228:33 Missing space before opening brace space-before-blocks ✖ 232:47 Missing space before opening brace space-before-blocks ✖ 234:74 Missing space before opening brace space-before-blocks /Users/1ambda/github/apache/apache-zeppelin/zeppelin-master/zeppelin-web/src/components/navbar/navbar.controller.js (1/0) ✖ 84:25 Missing space before opening brace space-before-blocks ```
This commit is contained in:
parent
a896442c24
commit
021f9e761c
3 changed files with 7 additions and 8 deletions
|
|
@ -37,7 +37,6 @@
|
|||
"space-infix-ops": 0,
|
||||
"operator-linebreak": 0,
|
||||
"prefer-spread": 0,
|
||||
"space-before-blocks": 0,
|
||||
"no-redeclare": 0,
|
||||
"standard/object-curly-even-spacing": 0,
|
||||
"comma-spacing": 0,
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ export default class ScatterchartVisualization extends Nvd3ChartVisualization {
|
|||
//handle the problem of tooltip not showing when muliple points have same value.
|
||||
};
|
||||
|
||||
yAxisTickFormat(d, yLabels){
|
||||
yAxisTickFormat(d, yLabels) {
|
||||
if (yLabels[d] && (isNaN(parseFloat(yLabels[d])) || !isFinite(yLabels[d]))) { // to handle string type xlabel
|
||||
return yLabels[d];
|
||||
} else {
|
||||
|
|
@ -209,10 +209,10 @@ export default class ScatterchartVisualization extends Nvd3ChartVisualization {
|
|||
// TODO remove epsilon jitter after bump to nvd3 > 1.8.5
|
||||
var xval = 0
|
||||
var yval = 0;
|
||||
if (xAxis){
|
||||
if (xAxis) {
|
||||
xval = (isNaN(xValue) ? rowNameIndex[xValue] : parseFloat(xValue)) + Math.random() * epsilon;
|
||||
}
|
||||
if (yAxis){
|
||||
if (yAxis) {
|
||||
yval = (isNaN(yValue) ? colNameIndex[yValue] : parseFloat(yValue)) + Math.random() * epsilon;
|
||||
}
|
||||
|
||||
|
|
@ -225,13 +225,13 @@ export default class ScatterchartVisualization extends Nvd3ChartVisualization {
|
|||
|
||||
// TODO remove sort and dedup after bump to nvd3 > 1.8.5
|
||||
var d3gvalues = d3g[grpNameIndex[grpName]].values;
|
||||
d3gvalues.sort(function(a,b){
|
||||
d3gvalues.sort(function(a,b) {
|
||||
return ((a['x'] - b['x']) || (a['y'] - b['y']))
|
||||
});
|
||||
|
||||
for (var i = 0; i < d3gvalues.length - 1;){
|
||||
for (var i = 0; i < d3gvalues.length - 1;) {
|
||||
if ((Math.abs(d3gvalues[i]['x'] - d3gvalues[i+1]['x']) < epsilon) &&
|
||||
(Math.abs(d3gvalues[i]['y'] - d3gvalues[i+1]['y']) < epsilon)){
|
||||
(Math.abs(d3gvalues[i]['y'] - d3gvalues[i+1]['y']) < epsilon)) {
|
||||
d3gvalues.splice(i+1,1);
|
||||
} else {
|
||||
i++;
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ function NavCtrl($scope, $rootScope, $http, $routeParams, $location,
|
|||
websocketMsgSrv.getNoteList();
|
||||
}
|
||||
|
||||
function getHomeNote(){
|
||||
function getHomeNote() {
|
||||
websocketMsgSrv.getHomeNote();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue