Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

218
Views
ReactChart2 - La línea no es un elemento registrado

Parece que no puedo corregir este error que solo ocurre después de haberlo implementado y me está volviendo loco. Probé todo, desde todas las demás sugerencias de desbordamiento de pila, sin suerte. No recibo errores en local, sin embargo, cuando implemento en Heroku, aparece el error "Error: "line" no es un controlador registrado". ¿Algunas ideas?

 import React, { useState } from 'react'; import { Chart as ChartJS, CategoryScale, LinearScale, BarElement, Title, Tooltip, Legend, PointElement, LineElement, } from 'chart.js'; ChartJS.register( CategoryScale, LinearScale, BarElement, PointElement, LineElement, Title, Tooltip, Legend, ); import { Chart } from 'react-chartjs-2'; const staticData = [ { type: 'line', label: 'Macleay Island Avg', backgroundColor: '#38A169', borderColor: '#38A169', order: 1 }, { type: 'bar', label: 'Macleay Island Total', backgroundColor: '#C6F6D5', order: 3 }, { type: 'line', label: 'Russell Island Avg', backgroundColor: '#F56565', borderColor: '#F56565', order: 2 }, { type: 'bar', label: 'Russell Island Total', backgroundColor: '#FED7D7', borderColor: 'rgb(14, 142, 205)', order: 4 } ] return ( <> <Chart type='bar' data={graphData} /> </> )
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Necesitas importar y registrar el LineController

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!