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

178
Views
How to draw svg line graph containing Bezier curve functionality in react?

I am collecting incoming data from user with x and y coordinates and some score point in addition . Now I want to display that data in svg line . Data from user contain all positive and negative values . So I want to plot line in coordinate plane like line can be in any shape . for eg - as we move cursor on screen draw svg curved line.

How can I implement this?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You could use functionality from d3.js. https://d3js.org/

Line generator

It makes it possible to provide an array of x,y coordinates and generate a valid svg path from it, that can be then be used for visualisation.

https://github.com/d3/d3-shape/blob/v3.1.0/README.md#lines

Example: https://observablehq.com/@d3/d3-line It also provides options for interpolations, like Bezier

Path Generator

If you need more control over your visualisation, you could use the path generator.

https://github.com/d3/d3-path/blob/v3.0.1/README.md#path

Example: https://observablehq.com/@d3/d3-path

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!