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

How to obtain the series from a ChartPoint returned by HitTest()? Options · View
p.t.
#1 Posted : Saturday, June 04, 2011 4:16:50 AM
Rank: Newbie

Groups: Registered

Joined: 5/26/2011
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 06, 2011 11:01:50 AM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
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-2016 ArtfulBits. All rights reserved.