Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1271

Summary: LoadChartFromFile not working correctly
Product: FireMonkey TeeChart Reporter: narcís calvet <narcis>
Component: ChartAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: 150420   
Target Milestone: ---   
Hardware: PC   
OS: Android   
URL: http://www.teechart.net/support/viewtopic.php?f=17&t=15694
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: Loaded chart with strange element...
Project reproducing the problem in Android

Description narcís calvet 2015-08-12 07:41:35 EDT
Created attachment 485 [details]
Loaded chart with strange element...

I use LoadChartFromFile on Android with the .tee - format.
The resulting chart contains an element which is not there/visible in the saved chart (see attachment).

Code to reproduce the problem:

uses
  System.IOUtils, FMXTee.Store;

procedure TForm1.Button1Click(Sender: TObject);
var tmpChart : TCustomChart;
begin
  if FileExists(FileName) then
  begin
    tmpChart:=TChart.Create(Self);
    LoadChartFromFile(tmpChart, FileName);

    Chart1 := tmpChart as TChart;
    Chart1.Parent:=Self;
  end;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  FileName := TPath.GetHomePath + 'test.tee';

  if not FileExists(FileName) then
    SaveChartToFile(Chart1, FileName,true,false);

  LoadChartFromFile(Chart1, FileName);
end;
Comment 1 narcís calvet 2015-08-12 07:42:09 EDT
Created attachment 486 [details]
Project reproducing the problem in Android
Comment 2 narcís calvet 2015-08-12 09:19:44 EDT
Looks like this "artifact" is a small chart, you can draw a zoom rectangle touch on the center of it and dragging the finder to the right-bottom direction.
Comment 3 narcís calvet 2015-08-12 09:53:59 EDT
This problem also occurs in iOS Simulator but not in Win32, Win64 and OSX.