DataValueVisible

Description

Specifies whether the numerical data values are displayed on the graph. When enabled, each data point's value will be rendered above its corresponding bar or column in the chart.

When the graph contains multiple data series or large numeric values, the displayed values may overlap. Consider adjusting the dataset, axis scale, or chart layout for better readability.

Applies to

Graph controls and Graph DataWindows

Syntax

PowerBuilder dot notation:

dw_control.Object.graphname.DataValueVisible

Describe and Modify argument:

"graphname.DataValueVisible { = ' boolean ' }

Parameter

Description

graphname

The graph control for which you want to display the data values.

Graph types that can display the data values are:

2 -- Bar

4 -- Bar3DObj

7 -- Col

9 -- Col3DObj

boolean

0 = Hides the data values

1 = Displays the data values on the graph


Usage

In the painter

Select the control and set the value in the Properties view, General tab.

Examples

The following statement sets a graph control to display the data values.

gr_1.DataValueVisible=true

The following statement sets a DataWindow in the graph presentation style to display the data values.

dw_1.Object.gr_1.DataValueVisible=true