Commit ca4ff8b5d4ab648623e2ee47344ef939863fa9da

Authored by Kuldeep Arora
1 parent 8497321f52
Exists in master

fixed customer sources pie chart

app/css/custom.css
... ... @@ -775,3 +775,10 @@ font-size: 10px !important;
775 775 width: 130px !important;
776 776 }
777 777 }
  778 +
  779 +.nv-series:last-child > .nv-legend-symbol{
  780 + display: none !important;
  781 +}
  782 +.nv-series:nth-child(6) > .nv-legend-symbol{
  783 + display: none !important;
  784 +}
778 785 \ No newline at end of file
... ...
app/partials/analytics/analytics.controller.js
... ... @@ -158,6 +158,7 @@ angular.module('acufuel')
158 158 //called the get api region wise
159 159 analyticsService.getRPP(region).then(function(result) {
160 160  
  161 + console.log("===region====",region,"====result====",result)
161 162 data = Highcharts.geojson(Highcharts.maps[mapKey]);
162 163  
163 164 for (var i = 0; i < data.length; i++) {
... ...
app/partials/analytics/analytics.service.js
... ... @@ -56,7 +56,7 @@
56 56 }
57 57  
58 58 /* With region Code */
59   - this.getRPP = function(code){
  59 + /*this.getRPP = function(code){
60 60 var deferred = $q.defer();
61 61 $http({
62 62 method : 'GET',
... ... @@ -69,7 +69,23 @@
69 69 deferred.resolve(result.data);
70 70 })
71 71 return deferred.promise;
  72 + }*/
  73 +
  74 + this.getRPP = function(code){
  75 + var deferred = $q.defer();
  76 + $http({
  77 + method : 'GET',
  78 + url : BASE_URL.url +'/fuelerlinx/getCompleteRegionalPap/'+code
  79 + })
  80 + .then(function (result){
  81 + deferred.resolve(result.data);
  82 + },function (result){
  83 + console.log(result)
  84 + deferred.resolve(result.data);
  85 + })
  86 + return deferred.promise;
72 87 }
  88 +
73 89  
74 90 /* without region code */
75 91 this.getAllRPP = function(){
... ...