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.
ChartDataPointEnum
ChartDataPointEnum can be one of these ChartDataPointEnum constants. |
chDataPointFirst Visible data point with the lowest index value. |
chDataPointLast Visible data point with the highest index value. |
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)
Applies to | ChSeries Object