Skip to content

Commit

Permalink
refactor(chartJs): remove label bg from polar chart
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaSkywalker committed Mar 1, 2016
1 parent bedd68b commit a3c304d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/pages/charts/chartJs/chartJs.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div class="col-md-4" ng-controller="chartJs1DCtrl">
<div ba-panel ba-panel-title="Polar" ba-panel-class="with-scroll ">
<canvas id="polar-area" class="chart chart-polar-area"
chart-data="data" chart-options="options" chart-labels="labels" chart-legend="true" chart-click="changeData">
chart-data="data" chart-options="polarOptions" chart-labels="labels" chart-legend="true" chart-click="changeData">
</canvas>
</div>
</div>
Expand Down
8 changes: 7 additions & 1 deletion src/app/pages/charts/chartJs/chartJs1DCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@
$scope.labels =["Sleeping", "Designing", "Coding", "Cycling"];
$scope.data = [20, 40, 5, 35];
$scope.options = {
segmentStrokeColor : "rgba(0,0,0,0)"
segmentShowStroke : false
};

$scope.polarOptions = {
scaleShowLabelBackdrop : false,
segmentShowStroke : false
};

$scope.changeData = function () {
$scope.data = shuffle($scope.data);
};
Expand Down

0 comments on commit a3c304d

Please sign in to comment.