Closed
Description
I am trying to get the connectgaps property to work in a React app where I use a custom plotly.js bundle to reduce the build size.
With this custom bundle which imports only Surface, connectgaps does not work.
If I use the full plotly.js bundle, the plot works properly.
See attached github repo for a simple reproduction showing the two plots side-by-side.
Github repo for reproduction
I presume that I either need to import something extra in the custom bundle, or that lib/Surface is missing a dependency?
Activity
archmoj commentedon May 28, 2020
Thanks for reporting. Here is a codepen illustrating the bug.
That's possibly related to
surface
trace using a function fromheatmap
trace.[-]Surface "connectgaps" not working with custom bundle[/-][+]no calendar on partial bundle[/+]archmoj commentedon Jun 2, 2020
@alexcjohnson strangely there is no calendar attached to axes when using partial gl3d bundle: demo.
[-]no calendar on partial bundle[/-][+]no calendar on partial bundles[/+]archmoj commentedon Jun 2, 2020
Not only
gl3d
but also other partial bundles e.g.gl2d
&basic
are also impacted by this bug: demo.archmoj commentedon Jun 2, 2020
To clarify how
calendar
issue is linked tosurface.connectgaps
issue,calendar
is undefined here when using partial bundle:plotly.js/src/traces/surface/convert.js
Line 444 in 5b8b1db