UltraChart.Axis.X.Labels.ItemFormatString = "<DATA_VALUE:##.##>"
This topic discusses useful information that will help you to ensure that your data is rendered properly in the scatter chart.
While the Chart control allows you to easily point the chart to your own custom data, it is important that you are supplying the appropriate amount and type of data that the chart requires. If the data does not meet the minimum requirements based on the type of chart that you are using, an error will be generated.
The following is a list of data requirements for scatter charts:
The data set contains two numeric columns identified by the ColumnX and ColumnY properties.
If you are binding the scatter chart to a series object, see Requirements for Series Binding for information on the series binding requirements.
If you are using the scatter chart in a composite chart, see Axis Requirements for Composite Charts for information on the axis requirements for the chart.
The chart data is rendered using the following rules:
The first two numeric columns specified as ColumnX and ColumnY are used in the order in which they appear.
You can select alternate columns (or rows) for ColumnX and ColumnY.
Both the X-axis (horizontal axis) and Y-axis (vertical axis) are numeric in Scatter charts, so that the data is plotted on a two-dimensional plane. Labels on both axes can be formatted using the FormatString property and a “numeric format”:
UltraChart.Axis.X.Labels.ItemFormatString = "<DATA_VALUE:##.##>"
UltraChart.Axis.Y.Labels.ItemFormatString = "<DATA_VALUE:##.##>"
If the ConnectWithLines property is set to True, then line segments connect the points identified by subsequent rows.
Each row represents one scatter point.
The columns at the indices specified by the ColumnX and ColumnY properties will be used to determine the horizontal (X) position, and vertical (Y) position of each scatter point.
Scatter points can be grouped according to the value in a specific column by specifying the GroupByColumn property, and setting the UseGroupByColumn property to True. Different icons/colors will be used for scatter points in different groups. If the ConnectWithLines property is set to True, lines will connect only scatter points within the same group.
The first string column encountered in the data will be used for row labels.
You can select an alternate column to be used for row labels, and toggle between the primary and secondary labels.
You can include or exclude any column from the chart using the UltraChart.Data. IncludeColumn method.
See below for an example data set, along with the rendered scatter chart.