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

Get x-axis date range Options · View
Elvira
#1 Posted : Wednesday, January 23, 2013 12:38:09 PM
Rank: Newbie

Groups: Registered

Joined: 1/17/2013
Posts: 5
Hi!

I cannot find the maximum and minimum dates of x-axis.

Code:

ChartAxis axis = mChartArea.getDefaultXAxis();
axis.setLabelFormat(new SimpleDateFormat("dd.MM.yyyy HH:mm:ss"));
axis.setValueType(ChartAxis.ValueType.Date);


If I want to change the range I write:
mChartArea.getDefaultXAxis().getScale().setDateRange(date1, date2);

But then how can I take the date range from this axis?
I need to know "date1" and "date2" that was set before.
Baydalka Volodymyr
#2 Posted : Wednesday, January 23, 2013 3:41:03 PM
Rank: Developers Team


Groups: Registered, Administrators

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

Check ChartAxisScale.getVisibleMaximum/getVisibleMinimum and use that value to make date - new Date((long)visMin)

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.