D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
KyKyPy3
Full window
Github gist
pie chart
Built with
blockbuilder.org
<!DOCTYPE html> <head> <meta charset="utf-8"> <script src="https://d3js.org/d3.v4.min.js"></script> <style> body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; } </style> </head> <body> <script> let module_data = { "N/A": 0.02763018065887354, "Disagree": 0.10839532412327312, "Neither Agree nor Disagree": 0.13177470775770456, "Agree": 0.7321997874601488 }; let columns = ["N/A", "Disagree", "Neither Agree nor Disagree", "Agree"]; let width = 400; let height = 300; var margin = { top: 80, bottom: 80, left: 120, right: 120, }; let svg = d3.select("body").append("svg") .attr("width", 960) .attr("height", 500) </script> </body>
https://d3js.org/d3.v4.min.js