GetDataPointVisible Method

Microsoft Office Web Components Visual Basic

Show All Show All

GetDataPointVisible Method

Returns the index of the data point that is visible in the scroll view. Long.

expression.GetDataPointVisible(datapoint)

expression    Required. An expression that returns a ChSeries object.

datapoint   Required ChartDataPointEnum.

Remarks

A data point is considered visible only if the associated category is within the scroll view. This method is valid only for bar and column charts. For other chart types, the value returned is undefined.

Example

The following example demonstrates how to get the index of the data point that is visible in the scroll view.

    Dim objSeries
Dim chChart
Dim lngPointFirst
Dim lngPointLast

Set chChart = ChartSpace.Constants

' Save the lowest and highest visible data point index values to variables.
lngPointFirst = _
    objSeries.GetDataPointVisible(chChart.chDataPointFirst)
lngPointLast = _
    objSeries.GetDataPointVisible(chChart.chDataPointLast)