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! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
stephd  
#1 Posted : Wednesday, April 14, 2010 7:00:11 PM(UTC)
stephd
Rank: Newbie

Groups: Registered
Joined: 4/14/2010(UTC)
Posts: 2

Hello,

First thanks for your excellent piece of software ! It's been a pleasure to work with it so far.

However, I recently went through some difficulties creating a RangeArea chart, provided in the brand new version of the library. Actually, I couldn't find a precise explanation on how to use it in a proper way; I understood that for a given X coordinate point, you have to provide two Y values. Thus, my current code is doing something like

for(int i = 0; i < 5; ++i) {
myseries.getPoints().addXY(i, 5-i);
myseries.getPoints().addXY(i, 5+i);
}

but I get an obscure ArrayOutOfBoundException thrown by the engine whatever I do, even if I try to remove one of the line within the loop.

Am I doing something wrong, and in this case how to solve the problem ?

Thanks for your support !

Stephane
Stephane Dupin
Research apprentice
SAP Labs France SAS
www.sap.com/research
Baydalka Volodymyr  
#2 Posted : Wednesday, April 14, 2010 7:31:23 PM(UTC)
Baydalka Volodymyr
Rank: Member

Groups: Registered
Joined: 7/28/2009(UTC)
Posts: 447
Man

Hi,

ChartSeries.getPoints.addXY is variadic method. Just try to set second Y value after first one.

myseries.getPoints().addXY(i, 5-i, 5 + i);

Best regards,

Edited by user Wednesday, April 14, 2010 7:33:18 PM(UTC)  | Reason: Not specified

Volodymyr Baydalka
Andriod development and support team
stephd  
#3 Posted : Wednesday, April 14, 2010 7:35:41 PM(UTC)
stephd
Rank: Newbie

Groups: Registered
Joined: 4/14/2010(UTC)
Posts: 2

Hi,

Thanks for the hint and the quick response, it solved my problem !

Regards

Stephane
Stephane Dupin
Research apprentice
SAP Labs France SAS
www.sap.com/research
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-2017 ArtfulBits. All rights reserved.