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

Creating a range area chart Options · View
stephd
#1 Posted : Wednesday, April 14, 2010 5:00:11 PM
Rank: Newbie

Groups: Registered

Joined: 4/14/2010
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 5:31:23 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
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,
Volodymyr Baydalka
Andriod development and support team
stephd
#3 Posted : Wednesday, April 14, 2010 5:35:41 PM
Rank: Newbie

Groups: Registered

Joined: 4/14/2010
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-2016 ArtfulBits. All rights reserved.