App下载

try_webpages_cs_008 在线工具

try_webpages_cs_008 在线工具

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="/statics/demosource/showrazor.css" />
</head>
<body>
<span class="marked">
@using System.Data;



@{

var dataSet = new DataSet();

dataSet.ReadXmlSchema(Server.MapPath("data.xsd"));

dataSet.ReadXml(Server.MapPath("data.xml"));

var dataView = new DataView(dataSet.Tables[0]);

var myChart = new Chart(width: 600, height: 400)

&nbsp;&nbsp;
.AddTitle("Sales Per Employee")

&nbsp;&nbsp;
.AddSeries("Default", chartType: "Pie",

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
xValue: dataView, xField: "Name",

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
yValues: dataView, yFields: "Sales")

&nbsp;&nbsp;
.Write();

}</span>
</body>
</html>
运行结果