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

Plot bands / background bands Options · View
ttarhan
#1 Posted : Saturday, December 29, 2012 6:31:42 AM
Rank: Newbie

Groups: Registered

Joined: 12/29/2012
Posts: 1
Location: California
We have a new project where we're evaluating the use of aiCharts. One of the requirements is plot bands or background bands, where we can specify a range of Y-values and a background color. For example: 0-10 might be yellow, 10-20 might be blue, and 20-30 might be green. These background colors sit behind all of the series and extend from edge-to-edge without any padding/etc. Is there any way to do this in aiCharts?

I've experimented with using area series that span the entire X-value range, but this doesn't defeat the padding. We want/need padding for the normal series, whereas we don't want padding for these background bands (they should extend all the way from the left edge to the right edge).

Thanks for your help.
Baydalka Volodymyr
#2 Posted : Wednesday, January 02, 2013 10:48:38 AM
Rank: Developers Team


Groups: Registered, Administrators

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

Try to use ChartAxisStripLine.

Example:
Code:

ShapeDrawable drawable = new ShapeDrawable();
drawable.getPaint().setColor(color);

ChartAxisStripLine sl = new ChartAxisStripLine();

sl.setStart(10);
sl.setEnd(20);
sl.setbackground(drawable);

chartArea.getDefaultYAxis().getStripLines().add(sl);


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.