My Data: I have a an Array of Objects:
var totalsArray = [
{ Applications: 1, Computing Servers: 0, Contracts: 0, Country: "United States" },
{ Applications: 1, Computing Servers: 0, Contracts: 0, Country: "Italy" },
{ Applications: 1, Computing Servers: 0, Contracts: 0, Country: "United States" },
{ Applications: 1, Computing Servers: 0, Contracts: 0, Country: "Spain" }
];
My Code: I then try to extract the keys using the following code:
var objectKeys = d3.keys(totalsArray[0]).filter(function(key) { return key;} );
However, I get an error because of the space in the key named "Computing Servers".
My question: Is there a way to properly create and keep the "space" in the key name/string?
Thank you for any assistance you can offer.