Is it possible for 3d charts to average across missing data points?

In creating a data matrix for the 3d surface charts in JS, I find that there are typically cells with missing data. In other words, the data may not be a solid 6x6, rather 6x6 with a few blank cells scattered around the matrix. Is there a way to specify an empty data point so the point can be averaged with its neighbors (rather than zero)? Or possibly a way to specify the x/y position of each point and let the library figure out how to draw all the points in between?

For example, I removed one point from the following codepen, but rather than blend it leaves a hole in the chart:

@jimmymm

Yes, it is possible: https://github.com/plotly/plotly.js/blob/master/src/traces/surface/attributes.js#L148.

1 Like

Perfect. This is precisely what I was missing. Thanks!