Niekes / d3-3d

d3-3d is a powerful JavaScript library designed for 3D visualizations, specifically tailored to work seamlessly with d3.js. This library enables the projection of 3D data onto web browsers, making it an essential tool for developers interested in creating immersive and dynamic visualizations.
BSD 3-Clause "New" or "Revised" License
352 stars 34 forks source link

Rectangular 3d surface #1

Closed llongobardi closed 6 years ago

llongobardi commented 6 years ago

Hi, i'm using your library to create a surface with axes. I simply mixed up your examples of the scatterplot and 3d surface, and everything works fine. I then tried to create a "rectangular" surface/grid with some rows and points per row (N of points per row != N of rows), but failed. I was just wondering if it was possible to create a rectangular grid.

EDIT: i noticed that when you create and render a plane with Nrows > N points per row, the code just breaks, while the vice-versa creates a distoted plane. You can try it by modifying your 3d surface plot parameters.

Your example

Niekes commented 6 years ago

Hey, this is a bug. I will fix this in the next release. Thanks for the hint !

MariDani commented 6 years ago

Hi Niekes, I was just wondering when are you planning the next release? Having this bug fixed would be great for me as well. Thanks a lot!

Niekes commented 6 years ago

Hey, last month I was in Brazil so I couldn't work on d3-3d. I think the next release will be in February.

Niekes commented 6 years ago

@BlackBlade @MariDani Release 0.0.8 should fix your issue. Thanks!

https://jsfiddle.net/niekes/q6uojuza/1/