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
Elvira  
#1 Posted : Wednesday, January 23, 2013 2:38:09 PM(UTC)
Elvira
Rank: Newbie

Groups: Registered
Joined: 1/17/2013(UTC)
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 5:41:03 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

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-2017 ArtfulBits. All rights reserved.