IChart.ResetDataCache;

Syntax

ResetDataCache;

Description

The ResetDataCache method resets data cache.

Comments

The method is relevant for the charts with a large number of points to avoid loading data from the source every time.

Example

To execute the example, create a form with a button named Button1 on the form, the ChartBox component and the UiChart component that is a data source.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Chart: IChart;
Begin
    Chart:= UiChart1.Chart;
    UiChart1.SetPointSerieCount(15,15);
    Chart.ResetDataCache;
End Sub Button1OnClick;

Clicking the Button1 button rewrites chart cache.

See also:

IChart