Version

Data Property (UltraChart)

Returns a DataAppearance object that can be used to configure the data connection of the chart to the data source.
Syntax
'Declaration
 
Public Property Data As DataAppearance
public DataAppearance Data {get; set;}
Remarks
Example
'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;
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also