Skip to content

Commit

Permalink
Merge pull request #21 from syndesis/titles
Browse files Browse the repository at this point in the history
Remove extra )
  • Loading branch information
Grant committed Sep 9, 2015
2 parents 2aedcdb + 9e4ef28 commit 073084a
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions dist/amChartsDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ angular.module('amChartsDirective', []).directive('amChart', ['$q', function ($q
replace: true,
scope: {
options: '=',
height: '=',
width: '='
height: '@',
width: '@'
},
template: '<div class="amchart"></div>',
link: function ($scope, $el) {
Expand Down Expand Up @@ -156,17 +156,15 @@ angular.module('amChartsDirective', []).directive('amChart', ['$q', function ($q
}
chart.chartScrollbar = scrollbar;
}

if (o.balloon) {
chart.balloon = o.balloon;
}
}

function generatePieProperties() {
if (o.balloon) {
var balloon = new AmBalloon();
var keys = Object.keys(o.chartScrollbar);
var keys = Object.keys(o.chartScrollbar);
for (var i = 0; i < keys.length; i++) {
balloon[keys[i]] = o.balloon[keys[i]];
}
chart.balloon = balloon;
chart.balloon = o.balloon;
}
}

Expand All @@ -189,7 +187,7 @@ angular.module('amChartsDirective', []).directive('amChart', ['$q', function ($q
for (var i = 0;i < o.titles.length;i++) {
var title = o.titles[i];
chart.addTitle(title.text, title.size, title.color, title.alpha, title.bold);
});
};
}

// WRITE
Expand Down

0 comments on commit 073084a

Please sign in to comment.