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

186
Vistas
Filling ApexCharts in Vue3 from an array

I'm not able to fill a Chart with my Array.

This is the Json: https://pastebin.com/KLUWqDFS

I'm trying to create a "Area" chart and fill it. Each element in the Json is half an hour.

let series = []

for(let i = 0; i < props.rrd.length; i++) {
    series.push({
        data: [
            {
                x: props.rrd[i].cpu * 100,
                y: moment(props.rrd[i].time).format('hh:mm')
            }
        ]
    })
}

const chartOptions = {
    yaxis: {
        show: true
    },
    xaxis: {
        show: true
    }
}

This is what I'm using. Somehow all I get is this: My Result

Eventhough it should show me the last 24 hours in the chart.

about 4 years ago · Santiago Gelvez
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