0
我正在使用氣泡系列創建TeeChart,我需要使用SQL數據庫中的數據填充該系列。我正在爲此編寫下面的代碼。使用從SQL檢索的數據創建氣泡圖
DataSet dsPoolPivot = new DataSet();
//Fill the dataset with data from a stored procedure
Steema.TeeChart.Styles.Bubble Bubble1 = new Steema.TeeChart.Styles.Bubble(WebChart1.Chart);
Bubble1.XValues.DataMember = dsPoolPivot.Tables[0].Columns["PaymentAmount"].ToString();
Bubble1.YValues.DataMember = dsPoolPivot.Tables[0].Columns["AllocationAmount"].ToString();
Bubble1.LabelMember = dsPoolPivot.Tables[0].Columns["Product_Desc"].ToString();
Bubble1.DataSource = dsPoolPivot.Tables[0];
除此之外我也有在其中我需要設置作爲氣泡圖表的大小參數,並且還需要設置圖表中的氣泡的透明度所述數據集的「ContingencyAmount」參數。
類似的代碼適用於條形圖,但如果使用此代碼,則不會生成氣泡系列。
有關如何實現這一點的任何想法?
謝謝桑德拉。這有助於我在一定程度上解決這個問題 – user1627749