@{
var db = Database.Open("SmallBakery");
var dbdata = db.Query("SELECT Name, Price FROM Product");
var myChart = new Chart(width: 600, height: 400)
.AddTitle("产品销售")
.DataBindTable(dataSource: dbdata, xField: "Name")
.Write();
}