From 58a22c0a975b4287e822a2ea96753253f6941c00 Mon Sep 17 00:00:00 2001 From: Arik Fraimovich Date: Tue, 8 Apr 2014 11:20:52 +0300 Subject: [PATCH] Fix pie charts display --- rd_ui/app/scripts/ng_highchart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rd_ui/app/scripts/ng_highchart.js b/rd_ui/app/scripts/ng_highchart.js index ee5e545c..bdcd742d 100644 --- a/rd_ui/app/scripts/ng_highchart.js +++ b/rd_ui/app/scripts/ng_highchart.js @@ -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) {