Skip to content

Commit 40533dc

Browse files
feat(charts):update to last chart config
1 parent 102692f commit 40533dc

2 files changed

Lines changed: 28 additions & 31 deletions

File tree

‎dev/FDF/charts_config.json‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
},
66
"age_pyramid#1": {
77
"type": "bar",
8-
"populationType": "duo",
9-
"valueLabels": [
8+
"barType": "duo",
9+
"yLabels": [
1010
{
1111
"fr": "60+"
1212
},
@@ -24,10 +24,9 @@
2424
}
2525
],
2626
"titleAxis": {
27-
"value": "charts.titleX",
28-
"notValue": "charts.titleY"
27+
"x": "charts.titleX""y": "charts.titleY",
2928
},
30-
"population": [
29+
"series": [
3130
{
3231
"id": "m",
3332
"index": 0,

‎showcase/FDF/charts_config.json‎

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"age_pyramid#1": {
77
"type": "bar",
88
"direction": "vertical",
9-
"populationType": "duo",
10-
"valueLabels": [
9+
"barType": "duo",
10+
"yLabels": [
1111
{
1212
"fr": "60+"
1313
},
@@ -25,10 +25,10 @@
2525
}
2626
],
2727
"titleAxis": {
28-
"value": "charts.titleX",
29-
"notValue": "charts.titleY"
28+
"x": "charts.titleX",
29+
"y": "charts.titleY"
3030
},
31-
"population": [
31+
"series": [
3232
{
3333
"id": "m",
3434
"index": 0,
@@ -46,8 +46,8 @@
4646
"age_pyramid#2": {
4747
"type": "bar",
4848
"direction": "vertical",
49-
"populationType": "single",
50-
"valueLabels": [
49+
"barType": "single",
50+
"yLabels": [
5151
{
5252
"fr": "(0 - 4)"
5353
},
@@ -65,33 +65,32 @@
6565
}
6666
],
6767
"titleAxis": {
68-
"value": {
68+
"y": {
6969
"fr": "# personne",
7070
"en": "# people"
7171
},
72-
"notValue": {
72+
"x": {
7373
"fr": "Interval d'âge",
7474
"en": "Age range"
7575
}
7676
},
77-
"population": [
77+
"series": [
7878
{
79-
8079
"id": "g",
81-
"index": 1,
80+
"index": 0,
8281
"color": "#AAB4C0",
8382
"label": {
84-
"fr": "Non genré/inclusif",
85-
"en": "Gender neutral/inclusive"
86-
}
83+
"fr": "Non genré/inclusif",
84+
"en": "Gender neutral/inclusive"
85+
}
8786
}
8887
]
8988
},
9089
"bar#5": {
9190
"type": "bar",
9291
"direction": "horizontal",
93-
"populationType": "single",
94-
"valueLabels": [
92+
"barType": "single",
93+
"yLabels": [
9594
{
9695
"fr": "Matelas",
9796
"en": "Mattress"
@@ -118,30 +117,29 @@
118117
}
119118
],
120119
"titleAxis": {
121-
"value": {
120+
"y": {
122121
"fr": "Nombre",
123122
"en": "Number"
124123
},
125-
"notValue": {
124+
"x": {
126125
"fr": "Articles non alimentaires (NFI)",
127126
"en": "Non-Food Items (NFIs)"
128127
}
129128
},
130-
"population": [
129+
"series": [
131130
{
132-
133131
"id": "nfi",
134-
"index": 1,
132+
"index": 0,
135133
"color": "#AAB4C0",
136134
"label": {
137-
"fr": "XXX",
138-
"en": "AAAA"
139-
}
135+
"fr": "XXX",
136+
"en": "AAAA"
137+
}
140138
}
141139
]
142140
},
143141
"doughnut_chart#4": {
144142
"type": "doughnut"
145143
}
146144
}
147-
}
145+
}

0 commit comments

Comments
 (0)