Skip to content

Commit 5768e33

Browse files
987389: To add a content for axis label template in MVC and Core documentation.
1 parent cacf9a4 commit 5768e33

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
public ActionResult Index()
2+
{
3+
List<ColumnChartData> chartData = new List<ColumnChartData>
4+
{
5+
new ColumnChartData{ country: 'USA', gold: 46 },
6+
new ColumnChartData{ country: 'UK', gold: 27 },
7+
new ColumnChartData{ country: 'China', gold: 26 },
8+
new ColumnChartData{ country: 'Russia', gold: 19 },,
9+
new ColumnChartData{ country: 'Germany', gold: 17 }
10+
};
11+
ViewBag.dataSource = chartData;
12+
return View();
13+
}
14+
public class ColumnChartData
15+
{
16+
public string country;
17+
public double gold;
18+
}

0 commit comments

Comments
 (0)