This project provides a dynamic and interactive heatmap visualization of the Nifty 50 stocks using Highcharts and Flask. The heatmap displays stock performance with box sizes representing market capitalization and colors indicating percentage changes.
- Real-time data fetching from Yahoo Finance
- Interactive treemap heatmap visualization
- Box sizes based on market capitalization
- Color coding based on stock price percentage change
- Responsive design for various screen sizes
- Tooltip with detailed stock information
-
Clone the repository:
git clone https://github.com/marketcalls/highcharts-heatmap.git cd highcharts-heatmap
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Ensure you have a
symbols.csv
file in the root directory with the Nifty 50 stock symbols.
-
Run the Flask application:
python app.py
-
Open a web browser and navigate to
http://localhost:5000
-
The heatmap will load, displaying the Nifty 50 stocks. Hover over boxes for more details.
- Modify
symbols.csv
to change the list of stocks displayed. - Adjust the color scheme in
index.html
by modifying thecolorStops
array. - Customize the data fetching interval in
app.py
by changing thetimedelta
value.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.
For any queries or suggestions, please open an issue on this repository.
Created by marketcalls