I am using angularjs chart, Chart.min.js and angular-chart.min.js
It shows the legend only the "labels" i want to see also the "data" by default along with the label, either as part of legend or within the pie chart section itself.
can any one help?
HTML:
<div class="col-lg-6 col-sm-12" ng-controller="PieCtrl">
<div class="panel panel-default">
<div class="panel-heading">Pie Chart</div>
<div class="panel-body">
<canvas id="pie" class="chart chart-pie" chart-data="data" chart-labels="labels" chart-options="options" chart-hover="chartOver" chart-click="chartPortionClick"></canvas>
</div>
</div>
</div>
JS:
var app = angular.module('demoApp', ['chart.js', 'ui.bootstrap']);
app.controller('PieCtrl', ['$scope', function ($scope) {
$scope.labels = ['Download Sales', 'In-Store Sales', 'Mail Sales','test'];
$scope.data = [300, 500, 100, 10];
$scope.options = { legend: { display: true } };
}]);