Skip to content

Commit

Permalink
Fixing default chart type
Browse files Browse the repository at this point in the history
  • Loading branch information
Madhuka committed Jun 30, 2015
1 parent 5ba1a89 commit 2e4975f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions app/scripts/chart-factory/nvd3-chart-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@
angular.module('apacheZeppelinGsocApp').factory('NVD3ChartFactory', function(
ChartFactory) {
var ChartList = {
'Bar': 'discreteBarChart',
'Bar': 'multiBarHorizontalChart',
'Line': 'lineChart'
};
//NVD3 Chart model
var NVD3ChartChartModel = {
options: {
chart: {
type: 'discreteBarChart',
type: 'multiBarHorizontalChart',
height: 300,
width: 500,
showLegend: true,
margin: {
top: 20,
right: 20,
right: 30,
bottom: 20,
left: 20
left: 70
},
x: function(d) {
return d.valuex;
Expand Down Expand Up @@ -86,7 +86,7 @@ angular.module('apacheZeppelinGsocApp').factory('NVD3ChartFactory', function(
console.log(rows);
nvd3AxisLabels = rows;
NVD3ChartFactory.viewModel.options.chart.xAxis = {
'axisLabel': 'Make',
//'axisLabel': 'Make',
'tickFormat': function(d) {
return nvd3AxisLabels[d];
}
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/controllers/chart-controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ angular.module('apacheZeppelinGsocApp').controller('ChartCtrl', function($scope,
var active = {
'dataButton': false,
'chartLibraryButton': false,
'chartTypeButton': false
'chartTypeButton': 'Bar'
};

function setButtonActive(set, type) {
Expand Down

0 comments on commit 2e4975f

Please sign in to comment.