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 - LoadChartFromFile not working correctly
Summary: LoadChartFromFile not working correctly
Status: CONFIRMED
Alias: None
Product: FireMonkey TeeChart
Classification: Unclassified
Component: Chart (show other bugs)
Version: 150420
Hardware: PC Android
: Normal normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-12 07:41 EDT by narcís calvet
Modified: 2015-08-12 09:53 EDT (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
Loaded chart with strange element... (69.76 KB, image/png)
2015-08-12 07:41 EDT, narcís calvet
Details
Project reproducing the problem in Android (59.29 KB, application/x-zip-compressed)
2015-08-12 07:42 EDT, narcís calvet
Details

Note You need to log in before you can comment on or make changes to this bug.
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.