newtfire / digitProjectDesign-Hub

shared repo for DIGIT 400: Digital Project Design class at Penn State Erie, The Behrend College
Creative Commons Zero v1.0 Universal
12 stars 2 forks source link

Making an SVG Pie Chart with XSLT #31

Closed ebeshero closed 3 years ago

ebeshero commented 3 years ago

This is for @PiperBaron and anyone else interested in making pie charts! I found and pushed some files from when my former student @jonhoranic and I first learned how to make a pie chart in 2016. :-) You need to add a namespace for the special math functions in XSLT so you can calculate with pi and use sin and cosine. I have a sample XSLT file here that will help! You'll find the files here in the digitProjectDesign-Hub under Class-Examples > SVG > PieChartTesting

https://github.com/newtfire/digitProjectDesign-Hub/tree/master/Class-Examples/SVG/PieChartTesting