Charting plugin: In order to plot arrays of data, there needs to be some sort of library or extension that can work with an input of data to plot the results. This is where chart.js comes in. Import the module into your project using this instillation here.
Historical API: To plot data, you must first make an API call to receive the historical stock data of a ticker symbol or company as the input. Sign up and use your free Styvio secret key to make an API call and receive the data here.
- Make a call to the Styvio API to receive historical stock prices.
- Send the data to chart.js to be plotted, with various time frames if necessary.