[Lazarus] TAChart OHLC

2014-09-13 Thread Leonardo M. Ramé
Hi, I'm trying to create a basic Open High Low Close chart using TAChart, but I'm getting a RunError(201) on "tacustomsource.pas" line 433, aparently YList is not initialized. Here's the lfm: object Form1: TForm1 Left = 364 Height = 354 Top = 255 Width = 582 Caption = 'Form1' Clien

[Lazarus] TAChart OHLC

2014-09-13 Thread Werner Pamler
You need to initialize the YCount of the chart source. Just call Chart1OpenHighLowCloseSeries1.ListSource.YCount := 4 before adding the data. (http://wiki.lazarus.freepascal.org/TAChart_documentation#Open-high-low-close_series) -- ___ Lazarus mailin

Re: [Lazarus] TAChart OHLC

2014-09-13 Thread Leonardo M. Ramé
On 13/09/14 20:28, Werner Pamler wrote: You need to initialize the YCount of the chart source. Just call Chart1OpenHighLowCloseSeries1.ListSource.YCount := 4 before adding the data. (http://wiki.lazarus.freepascal.org/TAChart_documentation#Open-high-low-close_series) -- ___