Show Json Data in Piechart and LineChart Ionic2 Hybrid Application

By Harshal Kartpay

I am Beginner in Ionic Hybrid Application Development. I want to show json data in pieChart and Linechart.

This is my json Data and I want to show date and quantity_produced in my Piechart and Linechart. This type i want to show data

{
"data": [
{
"id": 5,
"date": "2016-12-06",
"product": "Gerbera",
"product_id": 1,
"product_type": "Flower",
"quantity_produced": 300,
"created": 1495591067
},
{
"id": 6,
"date": "2017-01-10",
"product": "Gerbera",
"product_id": 1,
"product_type": "Flower",
"quantity_produced": 400,
"created": 1495591081
},
{
"id": 9,
"date": "2017-03-23",
"product": "Gerbera",
"product_id": 1,
"product_type": "Flower",
"quantity_produced": 234,
"created": 1495591140
}
] }

Source: Stack Overflow

    

Share it with your friends!

    Fatal error: Uncaught Exception: 12: REST API is deprecated for versions v2.1 and higher (12) thrown in /home/content/19/9652219/html/wp-content/plugins/seo-facebook-comments/facebook/base_facebook.php on line 1273