は基本的に、あなたはChart1.Series[0].Points
にデータを追加する必要があります。
official siteを見てください、それがサンプルを持っている、とあなたは多くのサンプルでプロジェクトをダウンロードすることができます:ここではhttp://code.msdn.microsoft.com/mschart/Release/ProjectReleases.aspx?ReleaseId=1591
は、円グラフを作成するには、公式のサンプルからのコードは、(そのほとんどはオプション)です。
// Populate series data
double[] yValues = {65.62, 75.54, 60.45, 34.73, 85.42};
string[] xValues = {"France", "Canada", "Germany", "USA", "Italy"};
Chart1.Series["Default"].Points.DataBindXY(xValues, yValues);
// Set Doughnut chart type
Chart1.Series["Default"].ChartType = SeriesChartType.Doughnut;
// Set labels style
Chart1.Series["Default"]["PieLabelStyle"] = "Outside";
// Set Doughnut radius percentage
Chart1.Series["Default"]["DoughnutRadius"] = "30";
// Explode data point with label "Italy"
Chart1.Series["Default"].Points[4]["Exploded"] = "true";
// Enable 3D
Chart1.ChartAreas["ChartArea1"].Area3DStyle.Enabled = true;
// Disable the Legend
Chart1.Legends[0].Enabled = false;
複数の疑問符は必要ありません。落ち着いてください。 – Randell
あなたはhttp://code.msdn.microsoft.com/mschartを見ましたか?またはhttp://weblogs.asp.net/scottgu/archive/2008/11/24/new-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt.aspx? –
複数の疑問符。 :)参照、すでに冷静さ。 これは、コントロールを使用する方法の良い例を得るために、すばやいMSDN検索のために叫びます。私は何かが欠けていない限り。 – TheJacobTaylor