Componentator
Componentator

UI reusable web components for everyone

Pure JavaScript core for Pie and Donut SVG charts

Pure JavaScript core for Pie and Donut SVG charts

I belive that this blog post help you a lot and save your expensive time. These functions don't need any dependency for creating path. You can modify the source-code by your needs.

JavaScript core for PIE SVG chart

The function below returns a data for <path element and it doesn't need any dependency.

Pie chart usage

JavaScript core for DONUT SVG chart

The function below returns a data for <path element and it doesn't need any dependency.

Donut chart usage