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
kcon423  
#1 Posted : Wednesday, January 12, 2011 11:47:47 PM(UTC)
kcon423
Rank: Newbie

Groups: Registered
Joined: 11/26/2010(UTC)
Posts: 1

I have a line chart type that has date labels along the X-axis. The date points are a week apart. I need to mark the current date using a ChartAxisStripLine. Is there an example of how to accomplish this?

In addition, I would like the like to start the x-axis at the first date in the ChartPointCollection. In other words, my 1st datapoint may be '12/6'. I would like this label to line up with the y-axis, not the 1st grid mark. The 1st grid mark label should be my second week, i.e. '12/13'.

thanks for your help.
Baydalka Volodymyr  
#2 Posted : Thursday, January 20, 2011 10:16:25 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

Try following code do setup stripline

Code:
Date startDate;
Date endDate;

ChartAxisStripLine stripLine = new ChartAxisStripLine();
		
stripLine.setStart(startDate.getTime());
stripLine.setEnd(endDate.getTime());

chartAxis.getStripLines().add(stripLine);


To disable axis margins, just set it to zero.

Code:
chartAxis().getScale().setMargin(0)


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.