我想在圖表中添加動態系列。在asp.net中動態添加多個系列圖表
我有一個像date,totalamount這樣的數據。我想在圖表上繪製這些點。
我從sql數據庫中獲取數據並進行綁定。
我想繪製數據表中的數據,它將動態更新。
Series newSeries=new Series();
newseries.ChartType=SeriesChartType.Line;
newSeries.BorderWidth = 3;
Chart1.Series.Add(newSeries);
newSeries.XValueMember = "date1";
newSeries.YValueMembers = "total";
Chart1.DataBind();
這是在樹形視圖的最後一系列的繪圖。 請幫我一下嗎?
您可以嘗試asp.net圖表控件http://archive.msdn.microsoft.com/mschart – pmtamal
我已經使用asp.net圖表控件。同時將數據添加到系列中我無法綁定數據表中的動態數據我想添加動態系列與在循環中調用相同的數據表。所以它總是更新數據。 – Mahesh