I have received very positive feedback on my Asp.Net control for Google charts so I decided to place it up on Codeplex to allow people to participate and add code to the project.
I am currently working on a project roadmap so please let me know if you are interested in participating. One feature I have already begun work on is giving the control support for data binding.
Here is some example data binding code I have got working:
protected void Page_Load(object sender, EventArgs e) { chart.DataSource = GetDataSource(); chart.DataBind(); } private DataTable GetDataSource() { DataTable table = new DataTable(); table.Columns.Add("Type", typeof(string)); table.Columns.Add("Jan", typeof(float)); table.Columns.Add("Feb", typeof(float)); table.Columns.Add("Mar", typeof(float)); table.Rows.Add("Men", 68, 78, 88); table.Rows.Add("Women", 68, 58, 78); table.Rows.Add("Both", 88, 48, 98); return table; }
I am just binding to a simple DataTable which has one column containing the labels for the chart and multiple other columns which contain the data for the chart. The code above produces the following chart:
I look forward to seeing this project improve.