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

187
Visualizações
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 à 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