简体   繁体   中英

Is it possible to extrude a shape (like a U.S. state) with D3?

Is it possible to extrude a shape using D3, such as a US state based upon an attribute value?

For example, in this graphic, the states are extruded based upon some attribute value, which could be something like population or income.

挤压形状

D3 doesn't offer support for 3D shapes. So in principle, the answer is yes as long as you're willing to code the 3D part yourself. You are however most likely much better off using a library that supports this explicitly (like three.js ), maybe in conjunction with D3.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM