Open irfan opened 7 years ago
I'm creating columns dynamicly after an ajax call, so I applied something like following
$scope.pieColumns = []; // empty the stack
// loop for each object
var tmp = {};
tmp.id = domain.replace('.', '');
tmp.name = domain;
tmp.type = "pie";
$scope.pieColumns.push(tmp);
// end of loop
Im creating coulmns dynamically from ajax response, so, my objects become like:
$scope.piePoints = [{"Other domains": 70, "foocom": 30, "barcom": 100}];
$scope.pieColumns = [
{"id": "Other domains", "name": "Other domains", "type": "pie"},
{"id": "foocom", "name": "foo.com", "type": "pie"},
{"id": "barcom", "name": "bar.com", "type": "pie"}
];
Works good, but keep in mind this is a work around.
I believe this bug should be fixed.
Here is my template:
In my controller
As a result, it draws only Other domains as 100%, since it does not see other entries. But it shows all three coulmns in the legend.