Two Questions:
1. We are having candle series (or any other series) which users are able to zoom in and out, the problem is when user is zooming for example in candle series CandleWidth property will not scale to the correct value, Please have a look at screenshot, we need to scale candles to be smaller when we are zooming out and bigger when zoom in, any idea how?
2. each of our series types need to be associated with a volume series, but volume Y values are much higher than the main series, at first we used custom axis to achieve this the problem was we wanted our main series and volume series to be in same axis not different, so we thinking we can use BeforeDrawValues of volume series to manipulate Y values of volume before drawing to scale them correctly with our main series Y values. any other better approach?
3. when we compile our project in Windows its fairly fast when it comes to drawing charts, but the performance is not very good in osx, even an empty chart is very slow and not smooth for even resizing and quite laggy. how can we increase chart performance on osx?
candle width scaling
candle width scaling
- Attachments
-
- candle.PNG (5.01 KiB) Viewed 13286 times
Re: candle width scaling
Hello,
Could you please arrange a simple example project we can run as-is to reproduce the problem here and some screenshot indicating what would you expect to obtain?
Could you please arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.
Have you tried to manually calculate and change the candle width at the OnZoom/OnUndoZoom events?n2n wrote:1. We are having candle series (or any other series) which users are able to zoom in and out, the problem is when user is zooming for example in candle series CandleWidth property will not scale to the correct value, Please have a look at screenshot, we need to scale candles to be smaller when we are zooming out and bigger when zoom in, any idea how?
I understand you have two series with a very different range of values, but I'm not sure to understand how would you like to represent them.n2n wrote:2. each of our series types need to be associated with a volume series, but volume Y values are much higher than the main series, at first we used custom axis to achieve this the problem was we wanted our main series and volume series to be in same axis not different, so we thinking we can use BeforeDrawValues of volume series to manipulate Y values of volume before drawing to scale them correctly with our main series Y values. any other better approach?
Could you please arrange a simple example project we can run as-is to reproduce the problem here and some screenshot indicating what would you expect to obtain?
The simple example below seems to respond well to zoom and scroll operations in a Mac OSX X 10.11.1:n2n wrote:3. when we compile our project in Windows its fairly fast when it comes to drawing charts, but the performance is not very good in osx, even an empty chart is very slow and not smooth for even resizing and quite laggy. how can we increase chart performance on osx?
Code: Select all
uses FMXTee.Series.Candle;
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.View3D:=false;
Chart1.Legend.Visible:=false;
Chart1.AddSeries(TCandleSeries).FillSampleValues();
end;
Thanks in advance.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: candle width scaling
for the candlewidth on zoom i already handle it in OnZoom event, i was looking for a better way though ...
about the multiple series with different Y values, i have Series A which is candlesticks and maximum Y is 100, and i have Series B which is Volume series and Y values can go up to 1000000, normally TChart will scale my Y axis to highest value, which in this case is too much, and i want my volume series to be scaled down to be visible at the bottom of my chart like image attached, i tried using a different axis to achieve this which works but i want them both in same y axis.
about the multiple series with different Y values, i have Series A which is candlesticks and maximum Y is 100, and i have Series B which is Volume series and Y values can go up to 1000000, normally TChart will scale my Y axis to highest value, which in this case is too much, and i want my volume series to be scaled down to be visible at the bottom of my chart like image attached, i tried using a different axis to achieve this which works but i want them both in same y axis.
- Attachments
-
- scale.PNG (4.83 KiB) Viewed 13227 times
Re: candle width scaling
Hello,
Have you tried assigning one of the series to use the right axis? Ie:n2n wrote:i have Series A which is candlesticks and maximum Y is 100, and i have Series B which is Volume series and Y values can go up to 1000000, normally TChart will scale my Y axis to highest value, which in this case is too much, and i want my volume series to be scaled down to be visible at the bottom of my chart like image attached, i tried using a different axis to achieve this which works but i want them both in same y axis.
Code: Select all
Series2.VertAxis:=aRightAxis;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: candle width scaling
I just rather to use a custom axis for that then, i could do it like this, but i wanted to be able to have them both on same axis which it seems to be impossible. thanks anyway
Re: candle width scaling
Hi,
Having two series, A with values between 0-100 and B with values between 0-1000000, both linked to a unique vertical axis, how would you expect to be represented? An image could help to understand it.n2n wrote:I just rather to use a custom axis for that then, i could do it like this, but i wanted to be able to have them both on same axis which it seems to be impossible. thanks anyway
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |