Skip to content

Commit

Permalink
Adding Area Chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Madhuka committed Jul 4, 2015
1 parent 8fd51be commit 8c8d5ce
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion app/scripts/chart-factory/google-chart-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ angular.module('apacheZeppelinGsocApp').factory('GoogleChartFactory', function(
ChartFactory) {
var ChartList = {
'Bar': 'BarChart',
'Line': 'LineChart'
'Line': 'LineChart',
'Area': 'AreaChart'
};
//googleChart model (sample chart data model)
//TO-DO Sample Data will remove after model set.
Expand Down Expand Up @@ -82,5 +83,6 @@ angular.module('apacheZeppelinGsocApp').factory('GoogleChartFactory', function(
};
// define a new internal private method for this chart object
function setChartAxis() {}

return GoogleChartFactory;
});
3 changes: 2 additions & 1 deletion app/scripts/chart-factory/high-chart-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ angular.module('apacheZeppelinGsocApp').factory('HighChartFactory', function(
ChartFactory) {
var ChartList = {
'Bar': 'bar',
'Line': 'line'
'Line': 'line',
'Area': 'area'
};
//highChart model
var HighChartChartModel = {
Expand Down
3 changes: 2 additions & 1 deletion app/scripts/chart-factory/nvd3-chart-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ angular.module('apacheZeppelinGsocApp').factory('NVD3ChartFactory', function(
ChartFactory) {
var ChartList = {
'Bar': 'multiBarHorizontalChart',
'Line': 'lineChart'
'Line': 'lineChart',
'Area': 'stackedAreaChart'
};
//NVD3 Chart model
var NVD3ChartChartModel = {
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/config/chart-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ angular.module('apacheZeppelinGsocApp')
'template': 'views/charts/googlechart.html'
}],
'dataFiles': ['car', 'bike'],
'chartTypes': ['Line', 'Bar']
'chartTypes': ['Line', 'Bar','Area']
});

0 comments on commit 8c8d5ce

Please sign in to comment.