Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

182
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda