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
ahsteele  
#1 Posted : Sunday, March 14, 2010 11:45:16 PM(UTC)
ahsteele
Rank: Newbie

Groups: Registered
Joined: 3/14/2010(UTC)
Posts: 8
Location: Colorado, US

I am developing a real-time chart, which is refreshed every 15 seconds. I am seeing unexpected behavior in the Legend, depending on how many ChartSeries are currently in the ChartView. When I refresh the chart, ChartSeries may be added or removed. If there are two or more ChartSeries, the the Legend is working as expected and the values displayed are the names which I provided when creating each ChartSeries. If, however, the number of ChartSeries drops to one, then the Legend switches from displaying the ChartSeries name to the value that is being plotted on the Y-axis. Each refresh when there is only one ChartSeries will add another value to the legend (the current Y-axis value).

This seems very odd to me. Are there any settings that would correct this?

regards, Andrew
Baydalka Volodymyr  
#2 Posted : Monday, March 15, 2010 11:55:44 AM(UTC)
Baydalka Volodymyr
Rank: Member

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

You just need to change the items provider for legend. Try to use next code

Code:

ChartLegend legend = new ChartLegend(new LegendItemsProvider.SeriesItemsProvider());
		
chartView.getLegend().add(legend);


Best regards,
Volodymyr Baydalka
Andriod development and support team
ahsteele  
#3 Posted : Wednesday, March 17, 2010 12:15:26 AM(UTC)
ahsteele
Rank: Newbie

Groups: Registered
Joined: 3/14/2010(UTC)
Posts: 8
Location: Colorado, US

That solved my issue, thank you!
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.