Apr
1
private void chart()
{
object[] Data1 = new object[]
{
new object[] {10,15,30,10},
new object[] {20,50,20,5},
new object[] {45,25,05,20},
new object[] {35,10,40,30},
};
DataTable table = new DataTable();
table.Columns.Add("a", typeof(double));
table.Columns.Add("b", typeof(double));
table.Columns.Add("c", typeof(double));
table.Columns.Add("d", typeof(double));
for (int i = 0; i < Data1.Length; i++)
{
DataRow row = table.NewRow();
row.ItemArray = (object[])Data1[i];
table.Rows.Add(row);
}
this.ultraChart1.Data.DataSource = table;
this.ultraChart1.Data.DataBind();
this.ultraChart1.ChartType = Infragistics.UltraChart.Shared.Styles.ChartType.ColumnChart;
this.ultraChart1.TitleTop.Text = "TEXT";
}
{
object[] Data1 = new object[]
{
new object[] {10,15,30,10},
new object[] {20,50,20,5},
new object[] {45,25,05,20},
new object[] {35,10,40,30},
};
DataTable table = new DataTable();
table.Columns.Add("a", typeof(double));
table.Columns.Add("b", typeof(double));
table.Columns.Add("c", typeof(double));
table.Columns.Add("d", typeof(double));
for (int i = 0; i < Data1.Length; i++)
{
DataRow row = table.NewRow();
row.ItemArray = (object[])Data1[i];
table.Rows.Add(row);
}
this.ultraChart1.Data.DataSource = table;
this.ultraChart1.Data.DataBind();
this.ultraChart1.ChartType = Infragistics.UltraChart.Shared.Styles.ChartType.ColumnChart;
this.ultraChart1.TitleTop.Text = "TEXT";
}

写在我工作满一年
最近怎么都来找中国的喳?



对《Ultra Chart 的用法.》有 0 条评论