I have data like so (I got it by doing console.log($scope.exportData)):
[Object, Object, Object, Object, Object]
0: Object
AdjustmentFactorsCustomerSatisfaction: -40
AdjustmentFactorsEmployeeCompetence: -30
AdjustmentFactorsStaffTurnovers: -50
as you can tell I have 5 objects, I am looking to format this data for a CSV file, so each of those values are column names: AdjustmentFactorsCustomerSatisfaction, AdjustmentFactorsEmployeeCompetence and the data is in 1 row per an object. How would I do this. The example I am using for the CSV has data like this and it works:
var data = [["name1", "city1", "some other info"], ["name2", "city2", "more info"]];
it return no column names.
This what I would like it to look like:
emergenciesGuidelines emergenciesGuidelines emergenciesGuidelines
(Object 1 data (-40)) (Object 1 data (-30)) (Object 1 data (-50))
(Object 2 data) (Object 2 data) (Object 2 data)