Skip to content

s-weil/fun_with_plots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FUN WITH PLOTS

This is fun with plots where we experiment with data and visualizations in rust. For example the

  • weather data, a popular data source for forecasts which are hard to predict the more days ahead of the reference date
  • football metrics which compare stats and metrics of several players

Below are visualizations of weather data

Forecasts absolute Forecasts absolute Forecasts absolute

Below are visualizations of the football data

Ronaldo
Forecasts absolute
Messi
Forecasts absolute
Ronaldo and Messi per season (GPM - goals per minute, scaled by 100.0; PPM - passes per minute)
Forecasts absolute

Disclaimer

This is a fun project with many open todo's and possible improvements, i.e. due to lack of time many parts are simple and not meant for any productive setup.

The data is licensed to weatherbit.io resp. football.api-sports.io and is hence not provided here, i.e. not under source control. For the former, you need to run the app on a daily basis for several days in order to gather the data required for creating plots similar to the ones above.

Setup

Rename the .env_exampe file to .env and paste in your API Key from weatherbit.io resp. football.api-sports.io Also adjust the country and zip code in the config.toml file for the weather data and football_country for the football data.

Run

cargo r weather
cargo r football

TODOs and ideas

- comments
- add more weather graphs like pressure and more football metrics and players
- further data sources: add corona, census or stock data
- add (mongo) DB for data management

About

Visualize data in rust. Keep it fun

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published