var OidOrg = localStorage.getItem("OID_ORG"); angular.module('Stock', 
['angularCharts']);

function MainController($scope,$http) {

$http.get('http://localhost:8080/services/getStkCategorieInJSON' + '/' + 
OidOrg)

    .success(function(response){
        $scope.empData=response;
        $scope.reverse=true;

    $scope.data = {
    series: ['Facturations'],
    data : [{
        x : $scope.empData[0].Commercial.descCategPrd,
        y: [$scope.empData[0].Commercial.qte]   
    },
    ]     }



        })
    .error(function(){
    alert("Vérifier votre connexion internet ! ");
    });

$scope.chartType = 'pie';

i want to put this data json on a loop in my data series chart

this is my data output json :

[{"Commercial":{"descCategPrd":"GRANIT","qte":4870.1403}},
 {"Commercial":{"descCategPrd":"MARBRE","qte":2517.57}},
 {"Commercial":{"descCategPrd":"QUARTZ","qte":55.17}}]

thank's a lot

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to