Skip to content

Commit 4861b9a

Browse files
mdd-update-data-legend-sample (#738)
added unitText and included columns to reflect the series in view.
1 parent d7a1710 commit 4861b9a

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

samples/charts/data-chart/data-legend.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,29 @@
88
"legend": {
99
"type": "DataLegend",
1010
"name": "legend",
11-
"targetRef": "chart"
11+
"targetRef": "chart",
12+
"unitsText": "%",
13+
"includedColumns": ["BirthRate", "DeathRate"]
1214
},
1315
"content": {
1416
"type": "DataChart",
1517
"name": "chart",
1618
"axes": [
17-
{
18-
"type": "NumericXAxis",
19-
"name": "xAxis",
20-
"title": "Death Rate",
21-
"interval": 1,
22-
"minimumValue": 4,
23-
"maximumValue": 16
24-
},
2519
{
2620
"type": "NumericYAxis",
2721
"name": "yAxis",
2822
"title": "Birth Rate",
2923
"interval": 10,
3024
"minimumValue": 0,
3125
"maximumValue": 60
26+
},
27+
{
28+
"type": "NumericXAxis",
29+
"name": "xAxis",
30+
"title": "Death Rate",
31+
"interval": 1,
32+
"minimumValue": 4,
33+
"maximumValue": 16
3234
}
3335
],
3436
"series": [

0 commit comments

Comments
 (0)