From 3cdf428e8fc9ee312629d300f181c623ab171fe2 Mon Sep 17 00:00:00 2001 From: crustcrm1 Date: Mon, 12 Nov 2018 12:16:25 +0100 Subject: [PATCH] Fixed example JSON for charts API calls --- crm/docs/api/chart-bar.json | 38 ++++++++++++++++++++++++++++------- crm/docs/api/chart-donut.json | 33 +++++++++++------------------- 2 files changed, 43 insertions(+), 28 deletions(-) diff --git a/crm/docs/api/chart-bar.json b/crm/docs/api/chart-bar.json index b9457a1dc..bcfd86be2 100644 --- a/crm/docs/api/chart-bar.json +++ b/crm/docs/api/chart-bar.json @@ -1,16 +1,40 @@ { "kind": "bar", "data": [ - ["France", 12], - ["Slovenia", 10], - ["Spain", 3], - ["United Kingdom", 5], - ["Germany", 20] + [ + "France", + 12 + ], + [ + "Slovenia", + 10 + ], + [ + "Spain", + 3 + ], + [ + "United Kingdom", + 5 + ], + [ + "Germany", + 20 ] - , + ], "fields": { "country": { - "kind": "string", + "kind": "string" } + }, + "meta": { + "name": "Bar chart", + "description": "", + "kind": "bar", + "module": 62511111111111110, + "x": 62522222222222220, + "y": 62533333333333336, + "groupby": 62544444444444450, + "count": 62566666666666664 } } diff --git a/crm/docs/api/chart-donut.json b/crm/docs/api/chart-donut.json index bcfd86be2..15b6ee7ec 100644 --- a/crm/docs/api/chart-donut.json +++ b/crm/docs/api/chart-donut.json @@ -1,40 +1,31 @@ { - "kind": "bar", + "kind": "donut", "data": [ [ - "France", - 12 + "Open", + 120000 ], [ - "Slovenia", - 10 + "Won", + 1000000 ], [ - "Spain", - 3 - ], - [ - "United Kingdom", - 5 - ], - [ - "Germany", - 20 + "Lost", + 30000 ] ], "fields": { - "country": { + "type": { "kind": "string" } }, "meta": { - "name": "Bar chart", - "description": "", - "kind": "bar", + "name": "Donut chart", + "description": "Description for the chart", + "kind": "donut", "module": 62511111111111110, "x": 62522222222222220, "y": 62533333333333336, - "groupby": 62544444444444450, - "count": 62566666666666664 + "sum": 62555555555555550 } }