{
let trace1 = {
mode: "markers",
type: "scatter",
x: waiting,
y: eruptions,
marker: {
size: 5,
color: "blue"
}
};
var trace2 = {
x: waiting,
y: eruptions,
type: 'histogram2dcontour'
};
let layout1 = {
title: "Old Faithful Waiting Time",
xaxis: {
title: "Waiting Time (s)"
},
yaxis: {
title: "Eription Time (s)"
}
};
const config = {
staticPlot: true,
responsive: true,
displayModeBar: false
};
const data = [trace1,trace2];
const div = DOM.element('div');
Plotly.newPlot(div, data, layout1, config);
return div;
}