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

Legend Behavior with FastLine Chart Options · View
ahsteele
#1 Posted : Sunday, March 14, 2010 9:45:16 PM
Rank: Newbie

Groups: Registered

Joined: 3/14/2010
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 9:55:44 AM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
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 : Tuesday, March 16, 2010 10:15:26 PM
Rank: Newbie

Groups: Registered

Joined: 3/14/2010
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-2016 ArtfulBits. All rights reserved.