Skip to content

Commit

Permalink
include units sold in reports tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
drKnoxy committed Apr 6, 2016
1 parent 3299c86 commit 4d78dca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/reports/product.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ angular.module('reportsModule')
tooltip: {
formatter: function() {
return [
this.series.name,': ',
'<b>$',this.y,'</b>'
this.series.name , ': ' ,
'<b>' , this.point.units_sold , ' units @ $' , this.y , '</b>'
].join('');
}
}
Expand Down Expand Up @@ -122,7 +122,7 @@ angular.module('reportsModule')
return {
// sku, units_sold
name: product.name,
data: [product.gross_sales]
data: [{y: product.gross_sales, units_sold: product.units_sold}]
};
}
}
Expand Down

0 comments on commit 4d78dca

Please sign in to comment.