When rendering a chart, based on asynchronous server data, half of the chart seems to be ‘hidden’ from view:
The chart layout and render call look like this:
const layout = {
autosize: true,
height: 300,
xaxis: {
showline: true,
automargin: true,
showticklabels: true,
tickfont: {
size: 10,
},
tickwidth: 1,
ticklen: 4
},
yaxis: {
title: "Resident name",
showline: true,
automargin: true,
showticklabels: true,
tickfont: {
size: 10,
},
tickwidth: 1,
ticklen: 4
},
margin: {
r: 10,
t: 10,
b: 40,
l: 10
},
bargap: 0.05,
barmode: 'stack',
showlegend: true,
legend: {
traceorder: 'normal',
x: 0,
y: 5,
orientation: 'h'
}
};
// Render plot
Plotly.newPlot('residentActivitiesSummary', data, layout, { displayModeBar: false, responsive: true });
How can I get the lower half of the chart to be displayed?