How to make a pie chart in HTML ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to make a pie chart in HTML ?

I want to about that how I can make a pie chart though html only and also wants to represent the values in different pies. please help me...

21st May 2020, 9:00 AM
Sujal
2 Answers
+ 2
Canvas or svg , whatever you like will help you draw a pie ,and then simply use text element or p(inline) to display values using position,top and left
21st May 2020, 9:20 AM
Abhay
Abhay - avatar
+ 1
Dynamically generated with JS (except the first one)... but pure html/css rendered: https://code.sololearn.com/WrNAOSwlxVh0/?ref=app If you want/need to avoid JS, you could either pre-generate with JS, and use the generated html content, or do it by hands (clear js tab, and explore html and css code ;))
21st May 2020, 9:13 AM
visph
visph - avatar