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
p.t.  
#1 Posted : Saturday, June 4, 2011 6:16:50 AM(UTC)
p.t.
Rank: Newbie

Groups: Registered
Joined: 5/26/2011(UTC)
Posts: 8
Location: USA

Hi,

I've used your hitTestDemo program to create my own. The hitTest() methoed would return the object that's clicked on. But the problems are:

1. Your program showed three possible clicks: onPointClick(), onSeriesClick(), onLegendItemClick(). But in reality, only the onPointClick() happened; no matter how I click the chart, onSeriesClick or onLegendItemClick were never happened.

2. When onPointClick() is called, it only gives me a ChartPoint. But my chart contains several ChartSeries, how do I deretmine which series this point belongs to?

thank you
Baydalka Volodymyr  
#2 Posted : Monday, June 6, 2011 1:01:50 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

1) onSeriesClick is called only for types like area, etc.
2) In current version there is no such method. However there is workarround. Please check following code.

Code:
public ChartCustomAttribute<ChartSeries&rt; SERIES = ChartCustomAttribute.register("series", ChartSeries.class, ChartSeries.class, null);
...

series.setAttribute(SERIES_SELF, series);

...
ChartSeries series = point.getAttribute(SERIES);


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-2017 ArtfulBits. All rights reserved.