3
0

Fixed example JSON for charts API calls

This commit is contained in:
crustcrm1 2018-11-12 12:16:25 +01:00
parent 21b4e366fc
commit 3cdf428e8f
2 changed files with 43 additions and 28 deletions

View File

@ -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
}
}

View File

@ -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
}
}