Pessoal, Boa Noite!

Não sei muito sobre angular, estou aqui procurando ajuda de vcs...
Minha função está funcionando perfeitamente. Estou fazendo um GET em uma 
API e fazendo um gráfico.
Problema: antes de fazer o gráfico queria colocar essa chamada em AZUL em 
um LOOP para executar 6 vezes alterando os parâmetros.

Alguém sabe como fazer isso? Muito Obrigado.

$scope.metricSearches = {

            resolutionsCBK: {
                *type: "payment_actions",*
*                params: {*
*                    status: "closed",*
*                    date_field: "action_date",*
*                    interval: $scope.selectedDates.interval,*
*                    from: $scope.selectedDates.startDate.toISOString(),*
*                    to: $scope.selectedDates.endDate.toISOString(),*
*                    group_by: "action_date,chargeback_status",*
*                    "admin_id[list]": $scope.userList.join(","),*
*                    "site_id[list]": $scope.siteId,*
*                    chargeback_status: "fraud"*
*                },*
                graph: {
                    first_aggregation: {
                        name: "action_date_dates",
                        is_date: true,
                        date_format: dateFormat
                    },
                    second_aggregation: {
                        name: "chargeback_status_group_by",
                        is_date: false
                    },
                    title: "Chargebacks # (Fecha Acción)",
                    y_title: "# Pagos",
                    colors: {
                        fraud: "#D65E5E"
                    },
                    stack: {
                        formatter: function (){
                            return "";
                        },
                        style: {
                            fontWeight: 'normal',
                            color: 'gray',
                            "font-size": '9px'
                        }
                    }
                }
            },
};

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to