Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

384
Visualizações
Use the data in a row to create a custom aggregation function in ag-grid (Vue.js)

I want to define as an available aggregation function for a given column the harmonic average using ag-grid. The equation is the following:

enter image description here

where the "weight" is one other column different from the one we want to aggregate and "x" is the column we want to aggregate.

I have made use of the addAggFunc to define a custom aggregation function and printed the params to find out where could the row data be located inside that object, but I could not find it.

this.gridApi.addAggFunc('harmonicAvg', (params) => {
  console.log(params);
  return 0;
});
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda