diff --git a/packages/superset-ui-legacy-plugin-chart-calendar/src/vendor/cal-heatmap.js b/packages/superset-ui-legacy-plugin-chart-calendar/src/vendor/cal-heatmap.js index ce94c5f66..89f42a294 100644 --- a/packages/superset-ui-legacy-plugin-chart-calendar/src/vendor/cal-heatmap.js +++ b/packages/superset-ui-legacy-plugin-chart-calendar/src/vendor/cal-heatmap.js @@ -1569,8 +1569,8 @@ CalHeatMap.prototype = { element.attr('fill', function(d) { if ( d.v === null && - (options.hasOwnProperty('considerMissingDataAsZero') && - !options.considerMissingDataAsZero) + options.hasOwnProperty('considerMissingDataAsZero') && + !options.considerMissingDataAsZero ) { if (options.legendColors.hasOwnProperty('base')) { return options.legendColors.base; @@ -1616,8 +1616,8 @@ CalHeatMap.prototype = { if ( parent.legendScale === null || (d.v === null && - (options.hasOwnProperty('considerMissingDataAsZero') && - !options.considerMissingDataAsZero) && + options.hasOwnProperty('considerMissingDataAsZero') && + !options.considerMissingDataAsZero && !options.legendColors.hasOwnProperty('base')) ) { htmlClass.push('graph-rect'); diff --git a/packages/superset-ui-legacy-plugin-chart-parallel-coordinates/src/vendor/parcoords/d3.parcoords.js b/packages/superset-ui-legacy-plugin-chart-parallel-coordinates/src/vendor/parcoords/d3.parcoords.js index 61721da9a..741ef8e97 100644 --- a/packages/superset-ui-legacy-plugin-chart-parallel-coordinates/src/vendor/parcoords/d3.parcoords.js +++ b/packages/superset-ui-legacy-plugin-chart-parallel-coordinates/src/vendor/parcoords/d3.parcoords.js @@ -1759,9 +1759,10 @@ module.exports = function(config) { var svg = pc.selection.select('svg').select('g#arcs'), id = arc.dims.i, points = [arc.p2, arc.p3], - line = svg - .selectAll('line#arc-' + id) - .data([{ p1: arc.p1, p2: arc.p2 }, { p1: arc.p1, p2: arc.p3 }]), + line = svg.selectAll('line#arc-' + id).data([ + { p1: arc.p1, p2: arc.p2 }, + { p1: arc.p1, p2: arc.p3 }, + ]), circles = svg.selectAll('circle#arc-' + id).data(points), drag = d3.behavior.drag(), path = svg.selectAll('path#arc-' + id).data([arc]);