Skip to content

Commit 728f9cd

Browse files
committed
adding pie chart
1 parent b2b4c79 commit 728f9cd

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

app/scripts/chart-factory/google-chart-factory.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ angular.module('apacheZeppelinGsocApp').factory('GoogleChartFactory', function(
1010
ChartFactory) {
1111
var ChartList = {
1212
'Bar': 'BarChart',
13-
'Line': 'LineChart'
13+
'Line': 'LineChart',
14+
'Pie': 'PieChart'
1415
};
1516
//googleChart model (sample chart data model)
1617
//TO-DO Sample Data will remove after model set.

app/scripts/chart-factory/high-chart-factory.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ angular.module('apacheZeppelinGsocApp').factory('HighChartFactory', function(
1111
ChartFactory) {
1212
var ChartList = {
1313
'Bar': 'bar',
14-
'Line': 'line'
14+
'Line': 'line',
15+
'Pie': 'pie'
1516
};
1617
//highChart model
1718
var HighChartChartModel = {

app/scripts/chart-factory/nvd3-chart-factory.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ angular.module('apacheZeppelinGsocApp').factory('NVD3ChartFactory', function(
1010
ChartFactory) {
1111
var ChartList = {
1212
'Bar': 'multiBarHorizontalChart',
13-
'Line': 'lineChart'
13+
'Line': 'lineChart',
14+
'Pie': 'pieChart'
1415
};
1516
//NVD3 Chart model
1617
var NVD3ChartChartModel = {

app/scripts/config/chart-config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ angular.module('apacheZeppelinGsocApp')
2323
'template': 'views/charts/googlechart.html'
2424
}],
2525
'dataFiles': ['car', 'bike'],
26-
'chartTypes': ['Line', 'Bar']
26+
'chartTypes': ['Line', 'Bar',"Pie"]
2727
});

0 commit comments

Comments
 (0)