Youtube playlist: https://www.youtube.com/playlist?list=PLhtWoD9f53K85YdW4S_VDj_1OeaxnEyJb
output.mp4
output.mp4
-
README.md: README file -
LICENSE: Contains the copyleft license for this project. -
songs/: A directory containing free, public-domain background songs.src/main.pypicks one randomly for the video. -
src/main.py: The main script. Run this to generate the finalsrc/output.mp4video. -
src/generate_data.py: A helper script used to generate the data. -
src/README.md: copy of README fileTemp files:
-
src/data.csv: Contains the generated stock data used for the animation. -
src/output.mp4: Output video after runningsrc/main.py.
Ensure you have the necessary Python libraries installed before running the scripts:
pip install pandas numpy matplotlib moviepy tqdmClone the repository to your local machine:
git clone https://github.com/triet228/animated-chart.git
cd animated-chart-
Generate the data (if you are interested in seeing
src/data.csv):python src/generate_data.py
-
Render the animated video:
python src/main.py
The script will render the frames, merge the audio, and output a finished video at src/output.mp4.
Different branches in this repository feature unique variations of the animated chart. You can switch between branches to generate different styles of racing videos.
| Branch Name | Description |
|---|---|
main |
The default branch with on going development. |
millionaire |
Races the stocks until one reaches $1M. |
leverage |
Races the stocks until one reaches $0. |
retirement |
Compare withdraw rate. |
contribution |
Invest monthly in stocks. |
Example use of branch
git checkout retirement
python src/main.pyThis project is open-source and distributed under a Copyleft License. See the LICENSE file for more details.