// // }
// // update the data that appears in the cars variable
// //svg.property('value', cars.filter(isBrushed)).dispatch('input');
// }
// // function onEnd(event) {
// // // if the brush is cleared
// // if (event.selection === null) {
// // // reset the color of all of the dots
// // dots.attr('stroke', d => carColor(d.Origin));
// // gridMap.node().property('value', initialValue).dispatch('input');
// // }
// // }
// }
// // adjmatx
// // .on("pointerover", cellHighlight)
// // .on("pointerout", cellRestore)
// // lines
// // .on("pointerover", lineHighlight)
// // .on("pointerout", lineRestore)
// // tlines
// // .call( d3.brush() // Add the brush feature using the d3.brush function
// // .extent( [ [0,0], [width,height] ] ) // initialise the brush area: start at 0,0 and finishes at width,height: it means I select the whole graph area
// // .on("start brush", updateChart) // Each time the brush selection changes, trigger the 'updateChart' function
// // )
// // Function that is triggered when brushing is performed
// // function updateChart() {
// // extent = d3.event.selection
// // myCircle.classed("selected", function(d){ return isBrushed(extent, x(d.Sepal_Length), y(d.Petal_Length) ) } )
// // }
// // // A function that return TRUE or FALSE according if a dot is in the selection or not
// // function isBrushed(brush_coords, cx, cy) {
// // var x0 = brush_coords[0][0],
// // x1 = brush_coords[1][0],
// // y0 = brush_coords[0][1],
// // y1 = brush_coords[1][1];
// // return x0 <= cx && cx <= x1 && y0 <= cy && cy <= y1; // This return TRUE or FALSE depending on if the points is in the selected area
// // }
// // }