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

ChartAxisStripLine with date Options · View
kcon423
#1 Posted : Wednesday, January 12, 2011 9:47:47 PM
Rank: Newbie

Groups: Registered

Joined: 11/26/2010
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 8:16:25 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
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-2016 ArtfulBits. All rights reserved.