Hello I have a problem with the resize of my scatter plot. I have to wait for the page to load and the graph is loaded, so i wrapped it in a document.ready function, Code is below
` $(document).ready(function () {
var d3 = Plotly.d3;
var WIDTH_IN_PERCENT_OF_PARENT = 60,
HEIGHT_IN_PERCENT_OF_PARENT = 80;
var gd3 = d3.select('#timeSeriesGraph')
.append('div')
.style({
width: WIDTH_IN_PERCENT_OF_PARENT + '%',
'margin-left': (100 - WIDTH_IN_PERCENT_OF_PARENT) / 2 + '%'
height: HEIGHT_IN_PERCENT_OF_PARENT + 'vh',
'margin-top': (100 - HEIGHT_IN_PERCENT_OF_PARENT) / 2 + 'vh'
});
var gd = gd3.node();
window.addEventListener('resize', function () {
Plotly.Plots.resize(gd);
});
})
Plotly.newPlot(targetElem, self.traces, self.layout);
TargetElem is the div i want to select, but im not able to select that div either, a lot of problems all round. I may have a special case compared to the other questions here. I appreciate any help I can get