Gets the number of pages, according to MaxPointsPerPage property.
TChart.Page.MaxPointsPerPage must be greater than zero to activate auto paging. TChart.Page.Current determines the current visible page.
Tags:
The current page number.
Run-time only. TChart.Page.Current determines the current visible points of Series in a Chart with MaxPointsPerPage greater than zero. When TChart.Page.MaxPointsPerPage is greater than zero, TeeChart internally divides all Series points in "pages". Each page is assigned a different initial and ending X coordinates. TChart.Page.NumPages returns the total number of pages. It equals the total number of Series points divided by MaxPointsPerPage. TChart.Page.Previous and TChart.Page.Next decrement or increment Current respectively.
Tags:
boolean getScaleLastPage(
)
|
|
Determines how the last Chart page will be displayed.
It only has effect when TChart.MaxPointsPerPage is greater than zero.
When true, the last Chart page will have the same horizontal scaling as the other pages. When false, the last Chart page scaling will be adjusted based on the number of visible points on that last page.
Default value: true
Tags:
Moves to next page ( Current + 1 )
When MaxPointsPerPage is greater than Zero, TeeChart automatically divides point values in Pages. Calling Next is the same as Page = Page + 1. The NumPages chart property returns the total number of pages.
Tags:
Moves to previous page ( Current - 1 )
When MaxPointsPerPage is greater than Zero, TeeChart automatically divides point values in Pages. Calling Previous is the same as Page = Page - 1 (Go back a page). The Count property returns the total number of pages.
Tags:
void setMaxPointsPerPage(
value
$value)
|
|
Sets the number of points displayed per page.
MaxPointsPerPage controls "TeeChart AutoPaging".
Setting it to a number greater than zero makes TeeChart internally divide Series points in Pages. You can then navigate across Chart pages by using Chart.Page and Chart.NumPages. For each Page, TeeChart will automatically calculate and display the corresponding Series points. The last page can have fewer points than other pages. You can use the Chart.ScaleLastPage to control if last page will be "stretched" or not.
Default value: 0
<p>Example:
myChart.getPage().setMaxPointsPerPage(6);
</p>
Tags:
Parameters: