Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

180
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda