This is definitely weird and I have no idea what could be causing this.
I have a couple of modules that plot heatmaps and bar, scatter combined plots respectively.
If I load the heatmap module first, the bar-scatter one breaks. If I load the bar-scatter first, the heatmap breaks.
Specifically, the heatmap when loaded first looks like
But the bar-scatter plot then breaks
There is no error.
If I load the bar-scatter first, it looks like it should
But the heatmap breaks
with error 'Error: attribute height: Expected length, “NaN”.
’
In both cases, there is absolutely no change in the code. Just the order in which they are loaded differs.
I suspect the problem could be in Plotlycore.register.
In the heatmap I do
PlotlyCore.register([PlotlyHeatmap])
In the bar one
PlotlyCore.register([PlotlyBar, PlotlyScatter])
And they reside in separate modules (react components) which are not displayed at the same time either.
I must change the view to make the specific component visible.
Even though I am registering the Plotlycore components separately in each module, I suspect its state is preserved somehow.
It is very difficult to replicate this on codepen.
Is this a known issue? I am using plotly version 1.31.0
Hoping to find some quick answers as everything else is working beautifully. Even the mentioned ones in isolation.
Thanks