WebChartControl


using System; using DevExpress.XtraCharts; // ... protected void Button1_Click(object sender, EventArgs e) { WebChartControl1.DataSourceID = "AccessDataSource1";//绑定数据源 WebChartControl1.SeriesDataMember = "Year";//绑定x轴坐标 WebChartControl1.SeriesTemplate.ArgumentDataMember = "Region";//绑定y轴坐标 WebChartControl1.SeriesTemplate.ValueDataMembers.AddRange(new string[] {"GSP"});//添加一个Series 名称是GSP WebChartControl1.SeriesTemplate.View = new StackedBarSeriesView(); WebChartControl1.DataBind();//绑定 } 

 

地址:http://documentation.devexpress.com/#XtraCharts/CustomDocument4779

你可能感兴趣的:(object,String,button)