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

Show DateTime instead of integer Options · View
khawar
#1 Posted : Tuesday, February 26, 2013 6:41:30 AM
Rank: Newbie

Groups: Registered

Joined: 2/25/2013
Posts: 4
Hello I am using the Android Charts - v1.7 library from aiCharts. I have two questions

1- I'm bit confused about displaying datetime instead of int i.e.

// Add points to series
series.getPoints().addXY(i, bPoints[i]);
but now I want replace i with datetime, which I am not allowed to put any String but integer/double

how do I put datetime as String?

2- When I want to show actual series

i.e. for( int i = -20; i < 100; i++)
then graph shows from from -50 to 100!!
How do I make sure that graph would display only given range?

thanks
Baydalka Volodymyr
#2 Posted : Tuesday, February 26, 2013 1:14:20 PM
Rank: Developers Team


Groups: Registered, Administrators

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

1) set chartArea.getDefaultXAxis().setValueType(ValueType.Date);
2) use chartSeries.getPoints().addDate();

Best regards,
Volodymyr Baydalka
Andriod development and support team
khawar
#3 Posted : Friday, March 08, 2013 12:27:42 PM
Rank: Newbie

Groups: Registered

Joined: 2/25/2013
Posts: 4
Thanks for replying, and now I've another issue regarding datetime, sometimes datetime at bottom is not displayed at all! why so? I mean for some date there is nothing written at bottom!
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.