Here is a demonstration of integrating d3 and x3dom to create a 3d bar plot of dynamic data. This example demonstrates the power of the d3 approach -- using x3dom for 3d visualization is just as concise and conceptually simple as using svg for 2d graphics.
Use your mouse to change the viewing angle, pan, and zoom.
Figuring out the correct viewport position and orientation was challenging and involved a lot of matrix math. See the wikipedia page for rotation matrices for hints.
- Live demo of this file: http://bl.ocks.org/camio/5087116
- X3D Reference: http://www.web3d.org/files/specifications/19775-1/V3.3/index.html
- x3dom site: http://www.x3dom.org/
David Sankel & Harry Voorhees Stellar Science
Hi @camio I just wanted to reach out to say a huge thank you for your D3 X3DOM Bar Chart example.
I have been working on a D3 X3DOM library which encorporates elements of your bar chart example above into my library called ‘d3-x3dom’:
https://github.com/jamesleesaunders/d3-x3dom
Out of courtesy, I also really wanted to check you are ok and ask for your blessing for me having encorporated parts of your code in the d3-x3dom library? I have added credit to you in the README.
If you have any questions or concerns please do not hesitate to ask. And, if you were interested, I would very much be honoured if you maybe wanted to contribute further to d3-x3dom!
All the best, J