- @{
- var myChart = new Chart(width: 600, height: 400)
- .AddTitle("Employees")
- .AddSeries(chartType: "column",
- xValue: new[] { "Peter", "Andrew", "Julie", "Mary", "Dave" },
- yValues: new[] { "2", "6", "4", "5", "3" })
- .Write();
- }
- //该片段来自于http://www.codesnippet.cn/detail/130920135856.html
来源: http://www.codesnippet.cn/detail/130920135856.html