sergio222-dev / ztools-2

GNU Affero General Public License v3.0
1 stars 0 forks source link

Add pie chart for analytics #81

Closed sergio222-dev closed 1 year ago

sergio222-dev commented 1 year ago

give the need of show data when the user click in the Reports button then show a chart like the mentioned below

using this library https://www.amcharts.com/demos/#pie

sergio222-dev commented 1 year ago

payload expected in frontend

{
  "data": [
    {
          "categoryName": "Salamin",
         "totalInflow": "2500000",
         "totalOutflow": "500000"
     },
    {
          "categoryName": "Salamin2",
         "totalInflow": "2500000",
         "totalOutflow": "500000"
     },
    {
          "categoryName": "Salamin3",
         "totalInflow": "2500000",
         "totalOutflow": "500000"
     }
  ]
}
sergio222-dev commented 1 year ago

resolved by #109