This is my Code:
frequencywindow.webContents.executeJavaScript(`graphDiv = document.getElementById("myDiv");`)
var traceA = {
x: [1, 2, 3, 4, 16, 17, 26],
y: [1, 40, 9, 60, 4, 20, 10],
type: 'scatter'
};
var data = [traceA];
var layout = {
title:'A Line Chart in Plotly'
};
Plotly.plot( graphDiv, data, layout );
I am using plotly in my electron application. I am getting an error like "Uncaught Error: DOM element provided is null or undefined". I am new to plotly. Can somebody help me?