Skip to content

Commit

Permalink
release 0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmaymk committed Aug 28, 2014
1 parent 819aa49 commit 73b97de
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
"devDependencies": {
"angular-mocks": "~1.2.16"
}
}
}
21 changes: 11 additions & 10 deletions dist/angular-charts.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* Main module
*/
* Main module
*/
angular.module('angularCharts', ['angularChartsTemplates']);
/**
* Main directive handling drawing of all charts
*/
* Main directive handling drawing of all charts
*/
angular.module('angularCharts').directive('acChart', [
'$templateCache',
'$compile',
Expand Down Expand Up @@ -273,9 +273,9 @@ angular.module('angularCharts').directive('acChart', [
svg.append('g').attr('class', 'x axis').attr('transform', 'translate(0,' + height + ')').call(xAxis);
svg.append('g').attr('class', 'y axis').call(yAxis);
/**
* Add bars
* @type {[type]}
*/
* Add bars
* @type {[type]}
*/
var barGroups = svg.selectAll('.state').data(points).enter().append('g').attr('class', 'g').attr('transform', function (d) {
return 'translate(' + x(d.x) + ',0)';
});
Expand Down Expand Up @@ -463,8 +463,8 @@ angular.module('angularCharts').directive('acChart', [
}
});
/**
* Labels at the end of line
*/
* Labels at the end of line
*/
if (config.lineLegend === 'lineEnd') {
point.append('text').datum(function (d) {
return {
Expand Down Expand Up @@ -609,7 +609,7 @@ angular.module('angularCharts').directive('acChart', [
complete = true;
//Add listeners when transition is done
path.on('mouseover', function (d) {
makeToolTip({ value: d.tooltip ? d.tooltip : d.data.y[0] }, d3.event);
makeToolTip({ value: d.data.tooltip ? d.data.tooltip : d.data.y[0] }, d3.event);
d3.select(this).select('path').transition().duration(200).style('stroke', 'white').style('stroke-width', '2px');
config.mouseover(d, d3.event);
scope.$apply();
Expand Down Expand Up @@ -770,6 +770,7 @@ angular.module('angularCharts').directive('acChart', [
left: event.pageX + 20 + 'px',
top: event.pageY - 30 + 'px'
});
angular.element('.ac-tooltip').remove();
angular.element(document.body).append(el);
scope.$tooltip = el;
}
Expand Down
Loading

0 comments on commit 73b97de

Please sign in to comment.