How to Create a Stock Ticker App in Dash Part 2

David Li
1 min readDec 8, 2019

From the Previous Article we covered how to make basic dash UI and some callbacks. Importing the yfinance library makes it easy to grab data from yahoo finance, however the format of the dates is datetime64 instead of datetime which will cause the xaxis malformed (think exponentials).

The full code is available on github.

Combining that code with the existing content and adding a ticker-graph html div results in the following graph.

Output Of Dow Jones Index Graph

This is a basic example of how plotly can be used in conjuction with external data sources to easier display data.

In the next part we will cover deploying this dash app to heroku and adding basic authentication, do not worry it about the same complexity as the other parts.

Part 3 is here

--

--