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

166
Views
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 answers
Answer question

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