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

402
Views
TypeError: _this[("render" + data.type)] no es una función

ingrese la descripción de la imagen aquí

Este es un error que estoy recibiendo en la consola. No sé por qué recibo esto, además he escrito el código de acuerdo con la documentación de la biblioteca Syncfusion .

A continuación se muestra el código que he escrito:

 import React from 'react'; import { SparklineComponent, Inject, SparklineTooltip } from '@syncfusion/ej2-react- charts'; const Sparkline = ({ id, height, width, color, currentColor, data, type }) => { return ( <SparklineComponent id={id} height={height} width={width} lineWidth={1} valueType="Numeric" fill={color} border={{ color: currentColor, width: 2 }} dataSource={data} xName="x" yName="y" type={type} tooltipSettings={{ visible: true, format: '${x} : data ${y}', //Getting error in this line// trackLineSettings: { visible: true } }} > <Inject services={[ SparklineTooltip ]} /> </SparklineComponent> ); }; export default Sparkline;

A continuación se muestra la captura de pantalla de la documentación y el enlace a ella también.

Captura de pantalla de la documentación

Enlace a la documentación de Syncfusion

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

He asegurado su escenario informado con el fragmento disponible en el enlace de documentación proporcionado. El control Sparkline se representa correctamente sin ninguna excepción. Verifique con la siguiente muestra y captura de pantalla.

Minigráfico

Muestra: https://stackblitz.com/edit/react-w5tumd

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