Skip to content

Commit

Permalink
[Shobhit|Deba] piechart paper fixed, though fixed height and width
Browse files Browse the repository at this point in the history
  • Loading branch information
debaghtk committed Jul 11, 2014
1 parent 3edc209 commit a82f660
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ angular.module('databases')
.directive('piechart',
function(){
var directive = {};
directive.restrict = 'E';
directive.restrict = 'AE';
directive.scope = {
info: '=info',
names:'=names'
Expand All @@ -16,7 +16,7 @@ angular.module('databases')
var ele;
scope.$watch( function(){
if(infoArray.length && namesArray.length && entry ){
ele = Raphael('pie', 360, 205);
ele = Raphael(element[0]);
entry=false;
ele.piechart(100,100,100,infoArray,{ legend:namesArray, legendothers:'Others', maxSlices:10});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h3>Redis Info for "{{database.name}}"</h3>
</a>
</div>
<div class="col-md-4">
<piechart info="dbarray" names="dbnames"><div id="pie"></div></piechart>
<div piechart info="dbarray" names="dbnames" style="height:210px; width:360px;"></div>
</div>
</div>
<hr>
Expand Down

0 comments on commit a82f660

Please sign in to comment.