Please find the following code and a short video attachement on how to reproduce this.
Using TeeChart Pro 2015.16 for VCL
Code: Select all
unit Unit1;
interface uses
System.Classes,
Vcl.Controls, Vcl.Forms,
VCLTee.TeEngine, VCLTee.TeeScrollPagerTool, VCLTee.Chart
;
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private var
chart: TChart;
tool: TScrollPagerTool;
private
procedure createChart();
end;
var
Form1: TForm1;
implementation uses VCLTee.Series;
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
createChart();
end;
procedure TForm1.createChart();
var
lineSeries: TLineSeries;
begin
chart := TChart.Create(self);
chart.Align := TAlign.alClient;
chart.Parent := self;
lineSeries := TLineSeries.Create(chart);
lineSeries.FillSampleValues();
chart.AddSeries(lineSeries);
tool := TScrollPagerTool.Create(chart);
tool.Series := lineSeries;
tool.SetUpScrollPager();
end;
end.