Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

389
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda