D3.js based tool showing each Asana benefits 🤸‍♀️
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
DataCollect
assets
Pipfile
README.md
index.html

README.md

DatAsana

Flow

Collecting data

1- Get data from a website (see Sources)
2- Study the structure of HTML doc
3- Create CSV file with BeautifulSoup4

Chart

  1. Initialize first wheel with benefits
  2. Initialize second wheel with pose names
  3. Add the lines between the points w/ colors

Data structure is defined by the following rules :

  • Sanskrit name is first & unique
  • English name is first & unique
  • Types of pose are contained in double quotes
  • Benefits are contained in square bracket (list of strings)

TODO

  1. Clean up Python code
  2. Add JS function to hide/display poses names
  3. Add JS function to display name in English or Sanskrit
  4. Add JS function to display poses by type or benefits
  5. Delete duplicate benefits
  6. See if there is a way to delete for loops in JS using D3 Joins
  7. Clean up JS code

Requirements

Python script to parse data

  • Python 3.6
  • BeautifulSoup 4.4.6

Sources

Yoga poses and info
Chord Diagram based
Text on Arc

Other

Feel free to use the yoga dataset I created :)

Python code to extract dataset can be optimized, I did not think of any algo that can accelerate the extraction of the data since I only needed to do it once but any suggestions are welcomed anyway :D