Check it out at: https://inclusiveclassrooms.github.io/wheel-demo/
The function to generate the wheel can be downloaded to a wheel.js
file with:
curl https://cdn.rawgit.com/InclusiveClassrooms/wheel-demo/39ebf028/wheel.js > wheel.js
The function will generate a "skills wheel" inside of an element you specify at a position you specify:
Typical use:
'#wheel-container'
, '.wheel1'
, etc
The object should have the following keys:
centre
# where the centre of the wheel isheight
# the height & width of the box the wheel is inratio
# the size of the wheel as a ratiounique_string
: # a unique string to differentiate each wheel, ensure this string is different for each wheel you are rendering on the same page
drawWheel(arr, '#wheel-container', '', {centre: 250, height: 500}, 1, 'first')