BETA
My accountGet started
Sep 182019
Componentator

Pure JavaScript core for Pie and Donut SVG charts

This blog post contains two simple JavaScript functions for generating Pie and Donut SVG charts. You can modify it by your needs.

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