[Lazarus] TAChart CandleStick Chart
Kamen Ketev
kamenlist at abv.bg
Mon Oct 6 12:58:42 CEST 2014
Thank you for adding CandleStick Chart!
I have 2 questions:
In OHLC tails are in the same color like body but in CandleStick is not. When I change background to black tails hides. How can I make color of the tails like body? Maybe in
CandlestickLinePen add option to copy color from body?
When I add big portion of data for example 2 years all period are in screen and
CandleStick are too small. How can I add HorzScrollBar or something like this and keep the scale of
CandleStick? I can zoom it but I want to scroll back to earlier time period.
Kamen
-------- Оригинално писмо --------
От: Werner Pamler
Относно: [Lazarus] TAChart CandleStick Chart
До: lazarus at lists.lazarus.freepascal.org
Изпратено на: Вторник, 2014, Септември 16 22:09:11 EEST
In r46244 the TOpenHighLowCloseSeries has a new property "Mode":
selection "mOHLC" does the standard painting as before while
"mChandleStick" paints the candlesticks that you requested. Since your
code was mostly a copy of existing code I decided to stick to the old
series type, but just add the painting modes. There are also properties
"CandleStickUpBrush", "CandleStickDownBrush" and "CandleStickLinePen" to
control painting of the up and down bars and the border and shadow line.
I also added a little demo "financial" to the "demo" folder of the
TAChart installation which demonstrates both modes. It would be nice if
you could have a look if everything is fine - I'm not an expert in
financial charts.
I also fixed the bug which ignored the true minimum of the data -
therefore, it is no longer necessary to calculate the minimum by
yourself, just have a look at the code in the demo project. And,
finally, I modified the AddXOHLC method such that it automatically
initializes the size of the YCount of the chart source if the current
size would not be enough.
--
_______________________________________________
Lazarus mailing list
Lazarus at lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20141006/07f10b6b/attachment-0002.html>
More information about the Lazarus
mailing list