function addHistograms(histograms) {
  let htmlOutput = '';
  for (let histogram of histograms)
    htmlOutput += histogram;

  // NOTE: This is generally unsafe due to XSS attacks. Make sure |htmlOutput|
  // cannot be modified by an external party.
  $('histograms').innerHTML = htmlOutput;
}
/**
 * Callback from backend with the list of histograms. Builds the UI.
 * @param {!Array<string>} histograms A list of trusted HTML strings
 *     representing histograms.
 */
Callback from backend with the list of histograms. Builds the UI.
@param {!Array} histograms A list of trusted HTML strings
representing histograms.
Callback from backend with the list of histograms . Builds the UI . @param { !Array } histograms A list of trusted HTML strings representing histograms .
function addHistograms(histograms) {
  let htmlOutput = '';
  for (let histogram of histograms)
    htmlOutput += histogram;
  $('histograms').innerHTML = htmlOutput;
}
function addHistograms ( histograms ) { let htmlOutput = '' ; for ( let histogram of histograms ) htmlOutput += histogram ; $ ( 'histograms' ) . innerHTML = htmlOutput ; }
Callback from backend with the list of histograms.
Callback from backend with the list of histograms .
// NOTE: This is generally unsafe due to XSS attacks. Make sure |htmlOutput| // cannot be modified by an external party.