MichelleEmbleton / appSecRadar

A colour-coded radar chart to keep track of technologies in use, whether they are being evaluated, adopted or phased out.
Apache License 2.0
14 stars 2 forks source link

Allow Radar to take input data via CSV by default (some might want to pull from JSON etc..) #15

Open kerberosmansour opened 7 years ago

kerberosmansour commented 7 years ago

As a user of the appsec radar I want updating the radar contents be as simple as updating a csv spreadsheet. However since some developers might also want to be able to auto-populate content via api, it should also be able to accept json (which it currently does) .

MichelleEmbleton commented 7 years ago

Will get round to making it take a csv and convert it to an object array...

MichelleEmbleton commented 7 years ago

It can take JSON data files for now. I found the simplest way to do this was with XMLHttpRequest() and using the var window.techList (global var) to get the parsed data out and available to all the functions - but I'm working on ways to tie down and restrict the variables more.. Not sure how to get it to take CSVs yet - I'm working on an OSX with iWork spreadsheets - which I can export as csv's - they are comma separated but with no line endings - haven't found a js solution yet - will work on it..