バージョン

Data プロパティ (UltraChart)

データソースへのチャートのデータ接続を設定する場合に使用できるDataAppearanceオブジェクトを返します。
シンタックス
'宣言
 
Public Property Data As DataAppearance
public DataAppearance Data {get; set;}
解説
詳細は、Infragistics.UltraChart.Resources.Appearance.DataAppearance を参照してください。
使用例
'set the datasource, datamember and call databind to get data into the chart
UltraChart1.Data.DataSource = Dataset1
UltraChart1.Data.DataMember = "Employees"
UltraChart1.Data.DataBind()
'exclude column 0
UltraChart1.Data.IncludeColumn(0, False)
'check to see if column 0 is excluded
Dim b As Boolean = UltraChart1.Data.IsColumnExcluded(0)
'Set whether or not to use the Min and Max values we set
UltraChart1.Data.UseMinMax = True
'set the min and max datavalues to show in the cahrt
UltraChart1.Data.MaxValue = 100
UltraChart1.Data.MinValue = -100
'set whether or not to use a rowlabels column
UltraChart1.Data.UseRowLabelsColumn = True
'set column 1 as the row labels column
UltraChart1.Data.RowLabelsColumn = 1
'set the column labels using an array
UltraChart1.Data.SetColumnLabels(New Object() {"label1", "label2", "Label3"})
'set the row labels using an array
UltraChart1.Data.SetRowLabels(New Object() {"label1", "label2", "Label3"})
'Swap rows and columns
UltraChart1.Data.SwapRowsAndColumns = True
'set the chart to not be zero aligned
UltraChart1.Data.ZeroAligned = False
// set the datasource, datamember and call databind to get data into the chart
  UltraChart1.Data.DataSource = Dataset1;
  UltraChart1.Data.DataMember = "Employees";
  UltraChart1.Data.DataBind();
  // exclude column 0
  UltraChart1.Data.IncludeColumn(0, false);
  // check to see if column 0 is excluded
   bool b = UltraChart1.Data.IsColumnExcluded(0);
  // set whether or not to use the Min and Max values we set
  UltraChart1.Data.UseMinMax = true;
  // set the min and max datavalues to show in the cahrt
  UltraChart1.Data.MaxValue = 100;
  UltraChart1.Data.MinValue = -100;
  // set whether or not to use a rowlabels column
  UltraChart1.Data.UseRowLabelsColumn = true;
  // set column 1 as the row labels column
  UltraChart1.Data.RowLabelsColumn = 1;
  // set the column labels using an array
  UltraChart1.Data.SetColumnLabels(new Object[] {"label1", "label2", "Label3"});
  // set the row labels using an array
  UltraChart1.Data.SetRowLabels(new Object[] {"label1", "label2", "Label3"});
  // swap rows and columns
  UltraChart1.Data.SwapRowsAndColumns = true;
  // set the chart to not be zero aligned
  UltraChart1.Data.ZeroAligned = false;
参照