INNER CODE UNIT · JavaScript
changeMergeDisplay
sirius-ms/sirius · lcms2/viewer/viewer.js:109
function changeMergeDisplay(evt) {
document.displayPlot =evt.checked;
d3.select("#parentPath").attr("opacity",document.displayPlot ? "100%" : "5%");
}
function show(data) {
xaxis = data.rt;
var container = d3.select("#chart")
// Declare the chart dimensions and margins.
const width = PLOT_WIDTH;
const height = PLOT_HEIGHT;
const marginTop = 20;
const marginRight = 20;
const marginBottom = 30;
const marginLeft = 40;
function getColor(index) {
// Calculate hue based on the index