lint fixes

This commit is contained in:
bkmartinjr
2018-09-20 14:52:17 -04:00
committed by Colin Megill
parent d9a75fcd10
commit 4543b002e3
6 changed files with 94 additions and 145 deletions
@@ -4,26 +4,28 @@
******************************************
******************************************/
// jshint esversion: 6
const setupParallelCoordinates = (width, height, margin) => {
var container = d3.select("#parcoords");
import * as d3 from "d3";
var svg = container
const setupParallelCoordinates = (width, height, margin) => {
const container = d3.select("#parcoords");
const svg = container
.append("svg")
.attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom)
.append("g")
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");
.attr("transform", `translate(${margin.left},${margin.top})`);
var canvas = container
const canvas = container
.append("canvas")
.attr("width", width * devicePixelRatio)
.attr("height", height * devicePixelRatio)
.style("width", width + "px")
.style("height", height + "px")
.style("margin-top", margin.top + "px")
.style("margin-left", margin.left + "px");
.style("width", `${width}px`)
.style("height", `${height}px`)
.style("margin-top", `${margin.top}px`)
.style("margin-left", `${margin.left}px`);
var ctx = canvas.node().getContext("2d");
const ctx = canvas.node().getContext("2d");
ctx.globalCompositeOperation = "darken";
ctx.globalAlpha = 0.15;
ctx.lineWidth = 1.5;