var ageNames = d3.keys(data[0]).filter(function(key) { return key !== "State"; });
Dynamic JSON returned from the WEB API:
var datafromDB = [{ "PAG": "Enterprise Computing", "Business Requirements": 1 }, { "PAG": "FACT", "Business Requirements": 1, "Change Impact Document": 1, "High Level Design": 2, "Low Level Design": 1 }, { "PAG": "ISG Product Operations", "Low Level Design": 1 }, { "PAG": "WMT Tech PQM", "High Level Design": 1 }];
In the dynamic JSON that is returned i don't have common static columns in the response.
if i use the below mentioned code i will only get Business Requirements from data[0] which i don't want.
I need to get the elements from the row which has similar to FACT in the above response(So i will get Business Requirements,Change Impact,High Level Design and Low Level Design]
var ageNames = d3.keys(data[0]).filter(function (key) {
return key !== "PAG";
});
So i looked into the below example but i need to filter my keys not my Data.
http://stackoverflow.com/questions/31839929/data-keyfunction-filter-always-returning-first-element
Please help how can i achieve this.