I use below code to display an image. However, the iage is not shown. What is wrong with the code?
const PLOT = document.getElementById(‘plot’);
const data = [
{
type: “image”,
x0: 0,
y0: 0,
dx: 1531,
dy: 1704,
source: “https://www.diglib.org/wp-content/uploads/sites/3/2015/04/Plotly-logo.png”,
},
];
const layout = {
width: 1531,
height: 1704,
};
Plotly.newPlot(PLOT, data, layout);
I am using plotly-2.24.1.min.js