SetDataLabelPosition method: Chart class
Syntax
SetDataLabelPosition(Record_Name.Field_Name1, ...)
Description
Use the SetDataLabelPosition method to set the position of the data labels, which are set by the SetDataLabel method.
Parameters
| Parameter | Description |
|---|---|
|
Record_Name.Field_Name1, ... |
Specify the name of the record and one or more fields on that record that contain the data for the data label positions for the chart. Note: The order of fields specified must correspond to the number and order specified by the SetDataYAxis method. |
The String value of this field must be one of these values:
| Value | Description |
|---|---|
|
center |
Centered on the data item. |
|
aboveMarker |
Above the marker for the data item.* |
|
belowMarker |
Below the marker for the data item.* |
|
beforeMarker |
Before the marker for the data item.* |
|
afterMarker |
After the marker for the data item.* |
|
insideBarEdge |
Inside the edge of a bar chart data item. |
|
outsideBarEdge |
Outside the edge of a bar chart data item. |
|
outsideSlice |
Outside the slice of a pie chart data item. |
|
auto |
The chart engine determines the best position for the label based on the chart type, chart size, label size and other factors. Specifically, for the bar chart family of charts:
|
* This value is not supported for any of the bar chart family of charts; on bar charts, the auto value is substituted instead.
Returns
None.
Example
&oChart.SetDataLabelPosition(QE_CHART_NPARKS.QE_CHART_POS);
Related Topics