whitespace COMPANY whitespace SERVICES whitespace PRODUCTS whitespace PURCHASE whitespace SUPPORT whitespace CONTACTS whitespace Home whitespace Contact Us whitespace Site Map whitespace
whitespace
SUPPORT
whitespace
FORUM
whitespace
FAQS
whitespace
SUBSCRIPTION
whitespace
REQUEST ON-LINE
whitespace
whitespace

Technical Support Forum

Welcome Guest Search | Active Topics | Log In | Register

promlem with candle series updating Options · View
aazwork
#1 Posted : Tuesday, November 09, 2010 1:42:00 PM
Rank: Member


Groups: Registered

Joined: 6/10/2010
Posts: 29
Location: Belarus
There is a candle series.
Task: update last bar(candle) with new values.
Problem: It seems that last values stay in memory and appearing after refresh.
How to reproduce:
1) fill ChartPointCollection by data.
2) find last (right) point
3) delete the point and add new with same X coordinate
OR change its values (I tried to call
Code:
point.setY(<new values>);
but the result was the same)

4) shift chart left/right -
Code:
setRange(prevBegin - dx, prevEnd - dx);

5) on picture below we can see the result, green candle appears. But before action 4) there is only red candle on the chart!
aazwork attached the following image(s):
aiChart_PointCollection_1.png (8kb) downloaded 23 time(s).
regards
Baydalka Volodymyr
#2 Posted : Tuesday, November 09, 2010 2:33:21 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
Hi,

Unfortunately, we can't reproduce issue that you have. Consider using ChartArea.refresh() method to refresh your chart when range is set (after setRange() call).

Best regards,
Volodymyr Baydalka
Andriod development and support team
aazwork
#3 Posted : Wednesday, November 10, 2010 10:15:59 AM
Rank: Member


Groups: Registered

Joined: 6/10/2010
Posts: 29
Location: Belarus
ChartArea.refresh() doesn't solve the problem.
Do I understand correctly, that the new version of aiCharts library supports multiple points with one coordinate X in the Point Collection?
If so can I add a new point so that it will overwrite the existing one in the collection?
regards
Baydalka Volodymyr
#4 Posted : Wednesday, November 10, 2010 5:12:09 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
Hi,

aiCharts library supports multiple points with one coordinate X all the time. Please check following sample, it demonstrates how to update Y values of first and last points. If sample doesn't help you, please provide complete information about that what you try to do with aiCharts.

Best regards,
File Attachment(s):
aiChartsPointsChange.zip (14kb) downloaded 1 time(s).
Volodymyr Baydalka
Andriod development and support team
aazwork
#5 Posted : Thursday, November 11, 2010 4:11:53 PM
Rank: Member


Groups: Registered

Joined: 6/10/2010
Posts: 29
Location: Belarus
At provided sample you know, what index does the point have.
So you take the point and modify its Y value(s).
In my case I know x-coordinate of point, but don't know point's index in the Collection.
So as I understand I have to find point using its x-coordinate and after that I will get ability to modify Y value. Is it so?
regards
Baydalka Volodymyr
#6 Posted : Monday, November 15, 2010 1:31:13 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
Hi,

Yes, you are right.

Best regards,
Volodymyr Baydalka
Andriod development and support team
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Company | Services | Practices | Technologies | Career | Contacts | Privacy
© 2005-2016 ArtfulBits. All rights reserved.