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

167
Vistas
Use SVG and Javascript to create Chart Generator Web App (no third party packages or libraries)

My professor has tasked us with creating a web app that generates a bar, pie, and line chart using only javascript and SVG. No third-party packages or libraries are allowed. I've been stuck on this for weeks and can't seem to figure it out.

Here is a good example of what I am trying to create http://nasir9bd.github.io/generate-chartjs/ the author uses jquery and chartjs, which I am not allowed to use.

If anyone can point me to a tutorial on how to create this using only javascript and SVG? please I am going mad! I've tried coding it myself and only got so far. I've tried tutorials, but all only use libraries or other languages.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I learned from Mozilla tutorial. . You have to be patient reading from scratch,

First, learn the 2D position of the shape (x,y)

Second, learn the basic shapes (Rectangle, Circle, Ellipse, Line, Polyline, Polygon, Path).

Third, customize and decorate these shapes with Fill, Stroke and Gradients.

Examples:

  • To draw a bar chart, draw an <svg> element with <rec> elements inside it.
  • To draw a pie chart, draw an <svg> element with <path> elements inside.
  • To draw a line chart, draw an <svg> element with an <polyline> element inside.

Try to read the basic shapes section, do the examples, you'll get 50% of the idea. Good luck!

about 4 years ago · Juan Pablo Isaza 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