INNER CODE UNIT · JavaScript

refreshPlot

sirius-ms/sirius · lcms2/viewer/viewer.js:104

function refreshPlot() {
  refreshIsobuttons();
  show(document.lcdata[document.currentIndex]);
}
document.displayPlot = d3.select("#displayMerged").node().checked;
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;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…