Merge pull request #167 from EverythingMe/fix_small_stuff

Fix: pie charts display (all categories were named "Slice X")
This commit is contained in:
Arik Fraimovich 2014-04-08 11:21:26 +03:00
commit 26365054bf

View File

@ -226,7 +226,7 @@
}
}
if (chartOptions['xAxis']['type'] == 'category') {
if (chartOptions['xAxis']['type'] == 'category' || chartOptions['series']['type']=='pie') {
if (!angular.isDefined(scope.series[0].data[0].name)) {
// We need to make sure that for each category, each series has a value.
var categories = _.union.apply(this, _.map(scope.series, function (s) {