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
mattkantor  
#1 Posted : Wednesday, February 13, 2013 5:53:39 PM(UTC)
mattkantor
Rank: Newbie

Groups: Registered
Joined: 2/13/2013(UTC)
Posts: 2
Location: Toronto Canada

I'm interested in having charts be able to show and hide one or more series based on some checkboxes in an Android layout. This would allow us to have compare and contrast graphs of similar data. Is this possible? Invalidate doesn' t seem to redraw the graph, do we need to put it in a fragment and just keep reinserting it or is there a native way to do this?

Confused
Rabish  
#2 Posted : Thursday, February 14, 2013 9:37:18 AM(UTC)
Rabish
Rank: Member

Groups: Registered
Joined: 2/11/2013(UTC)
Posts: 24
Location: Bangalore

I think you can do this in following way:

1)First clear the series
chartView.getSeries().clear();

2)Then add new series to the chart
chartView.getSeries().add(newSeries);

Baydalka Volodymyr  
#3 Posted : Thursday, February 14, 2013 6:14:49 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

There is one more workaround - try to set series.setArea("_SOME_NOT_EXISTING_AREA") to unbind series from default area and series.setArea(null) to bind back.

Best regards,
Volodymyr Baydalka
Andriod development and support team
mattkantor  
#4 Posted : Thursday, February 14, 2013 8:20:40 PM(UTC)
mattkantor
Rank: Newbie

Groups: Registered
Joined: 2/13/2013(UTC)
Posts: 2
Location: Toronto Canada

Thanks guys. Volodymyr's answer works super well. Thanks!
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.