Bar graph with 3 axis(x,y,z)

162 views
Skip to first unread message

Nithin Q

unread,
Jun 8, 2015, 4:38:44 AM6/8/15
to d3...@googlegroups.com
I wanted to generate a bar chart depending on 3 values(x,y and z axis) in 3D fashion using D3 .I couldn't find any method for doing this.Please help.

Micah Stubbs

unread,
Jun 10, 2015, 10:46:41 AM6/10/15
to d3...@googlegroups.com
Hi Nithin,

Here is literally what you request, in a another tool:


They use Three.js, which is a JavaScript wrapper for WebGL.

That said, since humans do not estimate volume very accurately, it is usually considered less useful to encode data in shapes like 3D bars. I've found this table of suggestions for how to encode data helpful 


You may have more success with a 3D Scatter plot.  Here is 3D scatter plot demo using Three.js and d3js


this post on 3D tree maps may also be useful - again it's Three.js + d3js


and a 3D surface plot:


also, this topic has appeared before - reading back to that old conversation may be enlightening.

good luck!

Reply all
Reply to author
Forward
0 new messages