Creating an animated 3D chart (canvas3DGraph)
This recipe is real fun. It's based on the source files of Dragan Bajcic. It's not a full library of charts, but it's a great inspirational chart that can be modified and used to create your own 3D data visualizations.
Although our source files in our attached sample are modified from the original source (mainly canvas3DGraph.js
), to get the original source for the open source projects used in this book, please visit our centralized list at http://blog.everythingfla.com/?p=339.
Getting ready
If you want to follow our updates, download the original source files from the provided link or review the changes that we make to Dragan's source files.
How to do it...
Let's jump right in as we have a lot of work to do:
Create the HTML file:
<!DOCTYPE html> <html> <head> <title>canvas3DGraph.js</title> <meta charset="utf-8" /> <link rel="stylesheet" href="./external/dragan/canvas3DGraph.css"> <script...