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
frenz  
#1 Posted : Thursday, January 20, 2011 7:32:28 PM(UTC)
frenz
Rank: Newbie

Groups: Registered
Joined: 12/9/2010(UTC)
Posts: 7
Location: Italy

Hi!
i'm writing an application that shows a scrollable line chart.
i need to start showing the highest x values, while actually the chart starts centered. How can i resolve?
thanks in advance!

Francesco
Baydalka Volodymyr  
#2 Posted : Thursday, January 20, 2011 8:52:24 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

Please, check ChartAxisScale.setZoom method.

Example :

Code:

private void zoomAxis(ChartAxis axis, double factor)
{
	ChartAxisScale scale = axis.getScale();

	double min = scale.getVisibleMinimum();
	double max = scale.getVisibleMaximum();
	double zoomSize = factor * (max - min); 
	
	scale.setZoom(max - zoomSize, zoomSize);
}
...
zoomAxis(chartArea.getDefaultxAxis(), 0.5);


Best regards,
Volodymyr Baydalka
Andriod development and support team
frenz  
#3 Posted : Wednesday, January 26, 2011 12:09:00 PM(UTC)
frenz
Rank: Newbie

Groups: Registered
Joined: 12/9/2010(UTC)
Posts: 7
Location: Italy

Thanks, it works perfectly!
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.