Skip to content

Commit

Permalink
mdd-update-data-legend-sample (#738)
Browse files Browse the repository at this point in the history
added unitText and included columns to reflect the series in view.
  • Loading branch information
mddifilippo89 authored Oct 21, 2024
1 parent d7a1710 commit 4861b9a
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions samples/charts/data-chart/data-legend.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,29 @@
"legend": {
"type": "DataLegend",
"name": "legend",
"targetRef": "chart"
"targetRef": "chart",
"unitsText": "%",
"includedColumns": ["BirthRate", "DeathRate"]
},
"content": {
"type": "DataChart",
"name": "chart",
"axes": [
{
"type": "NumericXAxis",
"name": "xAxis",
"title": "Death Rate",
"interval": 1,
"minimumValue": 4,
"maximumValue": 16
},
{
"type": "NumericYAxis",
"name": "yAxis",
"title": "Birth Rate",
"interval": 10,
"minimumValue": 0,
"maximumValue": 60
},
{
"type": "NumericXAxis",
"name": "xAxis",
"title": "Death Rate",
"interval": 1,
"minimumValue": 4,
"maximumValue": 16
}
],
"series": [
Expand Down

0 comments on commit 4861b9a

Please sign in to comment.