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

422
Views
TypeError: _this[("render" + data.type)] is not a function

enter image description here

This is an error I'm getting in the console. I don't know why I'm getting this moreover I have written the code according to the documentation of Syncfusion library.

Below is the code I have written:

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;

Below is the screenshot of the documentation and the link to it too.

Documentation ScreenShot

Link to Syncfusion Documentation

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I have ensured your reported scenario with the snippet available in provided documentation link. Sparkline control is rendered properly without any exception. Please check with the below sample and screenshot.

Sparkline

Sample : 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!