Commodity Markets Dashboard

← Back Dashboard GitHub Repository

Commodity Price Analysis Dashboard using Dash App deployed to Azure Cloud

The Commodity Price Analysis Dashboard is a web application that provides visualizations and analysis of historical price data for various commodities. It fetches data from Yahoo Finance using the yfinance library and allows users to explore price trends, volume, and correlations between commodities.

Features

Technologies Used

Installation

To install localy follow these steps:

  1. Clone the repository:

  2. git clone https://https://github.com/orlovtsu/comm-dashboard.git
    							
  3. Install the required dependencies:

    pip install -r requirements.txt
    							
  4. Run the app:

    python app.py
    							
  5. Open a web browser and go to http://localhost:8050 to access the dashboard

Deployment to Azure

To deploy the Commodity Price Analysis Dashboard to Azure, follow these steps:

  1. Create an Azure account if you don't have one already.

  2. Install the Azure CLI by following the instructions in the Azure CLI documentation.

  3. Log in to your Azure account using the Azure CLI:

  4. az login
    							
  5. Create a new Azure Web App:
  6. az webapp create --name <app-name> --resource-group <resource-group-name> --plan <app-service-plan-name> --runtime "PYTHON|3.8"
    							

    Replace , , and with your preferred names.

  7. Set up deployment from a local Git repository:
  8. az webapp deployment source config-local-git --name <app-name> --resource-group <resource-group-name>
    							
  9. Add the Azure remote repository as a Git remote:
  10. git remote add azure <git-url-from-previous-step>
    							
  11. Push your local repository to the Azure remote:

    git push azure master
    							
  12. Wait for the deployment to finish. You can monitor the deployment status in the Azure portal or using the Azure CLI:

    az webapp deployment list-publishing-credentials --name <app-name> --resource-group <resource-group-name>
    							
  13. Once the deployment is complete, access the Commodity Price Analysis Dashboard by visiting https://.azurewebsites.net in your web browser.

For detailed instructions on deploying a Dash application to Azure, refer to the official Dash deployment guide.

Usage

  1. Upon accessing the dashboard, you will see a left column displaying a list of available commodities and date range selectors.
  2. Select a commodity from the list by clicking on its name.
  3. Choose the start and end dates using the date pickers to define the time range for visualization.
  4. The main section of the dashboard will display candlestick charts, volume charts, and a correlation heatmap based on your selections.
  5. Explore the charts and heatmap by interacting with them. You can zoom in/out, pan, and hover over data points for additional information.

Data Source

The price data for the commodities is fetched from Yahoo Finance using the yfinance library. The data is downloaded and stored in a pandas DataFrame for visualization.

Credits

It is an open-source project. If you find any issues or have suggestions for improvements, please open an issue or submit a pull request

License

This project is licensed under the MIT License.

References

1. Yahoo Finance library for Python
2. Dash Library for Python
3. Plotly Open Source Graphing Library for Python