hi team,
can u give me the sample code for binding pie chart in runtime
();
dp.Label = dsSearchCriteria.Tables[2].Rows[i][0].ToString();
dp.Value =
.ToDouble(dsSearchCriteria.Tables[2].Rows[i][dsSearchCriteria.Tables[2].Columns.Count - 1]);
series.DataPoints.Add(dp);
series.Fill = RGB;
xamChart.Series.Add(series);
currently i am doing like above but its come for only one series
regards
Raj
Hi Raj,
The code you are using is correct for adding data points to a pie chart series at run time. I've included a sample using this method to create a pie chart series at runtime through the push of a button. Is this what you are looking for?
Let me know if you have any further questions.