Infragistics做图                  //产生数据库数据
Infragistics做图
        DataSet ds = new DataSet();
Infragistics做图
Infragistics做图        SqlConnection con 
= new SqlConnection(@"server=XINGSQLEXPRESS;database=Test;uid=sa;pwd=123456");
Infragistics做图
Infragistics做图        SqlCommand cmd 
= new SqlCommand("select Name,Money from test", con);
Infragistics做图
Infragistics做图        SqlDataAdapter sda 
= new SqlDataAdapter();
Infragistics做图
Infragistics做图        sda.SelectCommand 
= cmd;
Infragistics做图
Infragistics做图        con.Open();
Infragistics做图
Infragistics做图        cmd.ExecuteNonQuery();
Infragistics做图
Infragistics做图        sda.Fill(ds, 
"test");
Infragistics做图
Infragistics做图        con.Close();
Infragistics做图
Infragistics做图        
//绘制柱状图表
Infragistics做图

Infragistics做图        Infragistics.UltraChart.Resources.Util.DemoSetup(
this.UltraChart1);
Infragistics做图
Infragistics做图        
this.UltraChart1.DataSource = ds.Tables["test"];
Infragistics做图
Infragistics做图        
this.UltraChart1.DataBind();
Infragistics做图
Infragistics做图        
this.UltraChart1.ChartType = Infragistics.UltraChart.Shared.Styles.ChartType.ColumnChart;
Infragistics做图
Infragistics做图        
this.UltraChart1.Legend.Visible = true;
Infragistics做图
Infragistics做图        
this.UltraChart1.Axis.X.Labels.Orientation =
Infragistics做图
Infragistics做图        
this.UltraChart1.Axis.Y.Labels.Orientation =
Infragistics做图
Infragistics做图        Infragistics.UltraChart.Shared.Styles.TextOrientation.Custom;
Infragistics做图
Infragistics做图        
this.UltraChart1.TitleTop.Text = "UltraChart演示程序";
Infragistics做图
Infragistics做图        
this.UltraChart1.Tooltips.FormatString = "<font size=-1>Money:$<DATA_VALUE:00.00><BR>Item:<ITEM_LABEL>";// //鼠标悬停有提示,非常精美!
Infragistics做图


Infragistics做图

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
  • 2021-06-19
  • 2022-02-26
  • 2022-02-11
  • 2021-06-16
  • 2021-11-13
猜你喜欢
  • 2021-10-29
  • 2022-12-23
  • 2022-02-04
  • 2022-12-23
  • 2021-12-04
  • 2021-10-24
  • 2021-12-19
相关资源
相似解决方案