I am currently working on a project that involves two visualizations placed in different divs. My goal is to overlay one div over another when a button is clicked so that they can be compared, and then separate them again with another button click. Does anyone have any code snippets or links that could help me achieve this? I have been experimenting with the following javascript function:
function ShowOverlay(divID, xCoordinate, yCoordinate) {
var divObject = document.getElementById(divID);
divObject.style.visibility = "visible";
divObject.style.left = xCoordinate;
divObject.style.top = yCoordinate;
}