Click here to Skip to main content
15,905,912 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
what step need to draw chart?
@{
var db = Database.Open("cnn");
var dbdata = db.Query("SELECT  training_in,status FROM call_details");
var myChart = new Chart(width : 600, height: 400)
  .AddTitle("Enquiry Status")
  .AddSeries(chartType: "Pie",
     xValue: dbdata, xField: "training_in",
     yValues: dbdata, yFields: "status")
  .Write();
}



i have put this code in javascript file.
But i dont know ,how to use this code and what other step require for that.
Posted

 
Share this answer
 
Try Following Free Chart Controls

Fusion Charts[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900