diff --git a/rd_ui/app/scripts/directives.js b/rd_ui/app/scripts/directives.js index a4d1e397..b61aedc1 100644 --- a/rd_ui/app/scripts/directives.js +++ b/rd_ui/app/scripts/directives.js @@ -65,7 +65,8 @@ 'Line': 'line', 'Column': 'column', 'Area': 'area', - 'Scatter': 'scatter' + 'Scatter': 'scatter', + 'Pie': 'pie' }; if (!scope.vis) { diff --git a/rd_ui/app/scripts/ng-highchart.js b/rd_ui/app/scripts/ng-highchart.js index f234bccf..a3c1c416 100644 --- a/rd_ui/app/scripts/ng-highchart.js +++ b/rd_ui/app/scripts/ng-highchart.js @@ -107,6 +107,16 @@ } } }, + pie: { + allowPointSelect: true, + cursor: 'pointer', + dataLabels: { + enabled: true, + color: '#000000', + connectorColor: '#000000', + format: '{point.name}: {point.percentage:.1f} %' + } + }, scatter: { marker: { radius: 5,