Book Image

WebGL HOTSHOT

By : Mitch Williams
Book Image

WebGL HOTSHOT

By: Mitch Williams

Overview of this book

Table of Contents (17 chapters)
WebGL HOTSHOT
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Displaying historical stock data


Presenting current real-time data is just one analysis used by investors, but to identify trends and insights, we often use historical data. Since the data is historical, we do not capture it in real time. Historical data is more readily available. NASDAQ, for example, enables one to download a company's stock price closing by days, the past few months, years, or even since the beginning of that stock's history. These are downloaded as .csv files, which are comma-separated text data exported and read by Microsoft Excel. Our job is to read these files, parse the data, and display it in 3D.

Engage thrusters

For past demonstrations, we have used the meshObject.js JavaScript file to support our work. Since the 3D mesh will be generated based on the data read from a .csv file and not from data built from an .obj file, it made sense to create a new csvFile.js file set of JavaScript functions that replace meshObject.js for this example.

The .csv files exported by NASDAQ...