Black Lives Matter. Please consider donating to Black Girls Code today.

3D scatter plot not showing with one data point


I’ve programmed a 3D scatter plot in javascript using real time earthquake data from the USGS. Based upon user selection criteria, sometimes the plot only contains one data point. When that occurs, the scatter plot does not render. The only thing that plots is the axis labels. I’ve included a sample of a single data point with code below. It works fine with a arrays filled with many data points. Am I doing something wrong here?

Here’s a CodePen of it.

Looks like a bug. Thanks for the report.