- 1 year ago
With Delphi 11.2 and TeeChart converting VCL to FMX - Where is the function LoadChartFromfile?
Comment
1 / 1
In Delphi 11.2 with TeeChart, the LoadChartFromFile
function is not available in the FMX version of TeeChart. Instead, you can use the LoadFromFile
method of the TChart
component to load a chart from a file.
Here's an example of how to use LoadFromFile
:
arduinovar
MyChart: TChart;
begin
MyChart := TChart.Create(Self);
try
MyChart.LoadFromFile('C:\MyChart.tee');
finally
MyChart.Free;
end;
end;
In this example, we create a new TChart
component called MyChart
and then call the LoadFromFile
method to load a chart from the file 'C:\MyChart.tee'. Finally, we free the MyChart
component.
Note that the LoadFromFile
method can only load charts that have been saved in the TeeChart binary format (with a .tee
extension). If you need to load a chart from a different format, you may need to use a third-party library or write your own custom code to parse the file format.