Serverless (runs in local browser only) app to build a downloadable SVG pie chart
Visit site at: https://trophygeek.github.io/svgpiechart↗
![image](https://private-user-images.githubusercontent.com/522197/282080797-e6edbfb7-f693-4acd-b8d8-95d33b8a73ce.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxNjQ5NjksIm5iZiI6MTcyNDE2NDY2OSwicGF0aCI6Ii81MjIxOTcvMjgyMDgwNzk3LWU2ZWRiZmI3LWY2OTMtNGFjZC1iOGQ4LTk1ZDMzYjhhNzNjZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyMFQxNDM3NDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03M2MwZTc1NWMzMGU4NDJiMzYyNGUwM2RlOWNiMWVkNjdjZWRlNjUzNmRlYmJhOWUyYzVlNTA2MjU3Mzk1ODg1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.RES2zUIl1jXz8oW3wN3wP1Ho6r5SCwnqjzxKp0sr5tI)
- Each "slice" has inner and outer text.
- Data auto-saves into browser's localstorage, BUT you should download save data to restore it later or to share it with others.
- Drag and drop slices to reorder.
- Github action to build and deploy React site
Code show how to:
- Use React input interactively with an SVG graphics component
- Save an .svg file locally that was generated in javascrit without needing a server
- rotate and center text in svg
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.