通过构造函数,把值传递过来 public XtraInterpreterChartForm(object ds) { InitializeComponent(); datasource = ds; } 设置形状,数据等: // Create a pie series. Series series1 = new Series("Bar Series 1", ViewType.Bar); chartControl1.Series.Add(series1); chartControl1.Da…
关键代码: using System; using System.Data; using System.Windows.Forms; using CSharpUtilHelpV2; using DevExpress.XtraCharts; namespace DevExpressChart { public partial class winProduct : Form { public winProduct() { InitializeComponent(); } static readonl…
//using DevExpress.XtraEditors; //using DevExpress.XtraCharts; // Create an empty chart. ChartControl sideBySideBarChart = new ChartControl(); // Create the first side-by-side bar series and add points to it. Series series1 = new Series("Side-by-Side…