Search code examples
pie-chartios8.4

Pie Chart for Dynamic values in ios


I am beginner in iOS development .I am developing an application and I want create pie chart using dynamic data from JSON.

Data will looks like:

   {
    "name": "Sales",
    "total_earning": "904006",
    "per": 40.41
     },
    {
    "name": "Service",
    "total_earning": "596845",
    "per": 26.68
    }

I want display "per" in pie chart and it's dynamic values. Can you tell me which is the best way?

This pie chart for Department wise Earning Report in Android I want to make


Solution

  • You can use dlpiechart class of dilipajm in GitHub, then, modify property & var for your purpose. Hope its useful.