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
vijayakumar  
#1 Posted : Thursday, July 15, 2010 11:20:55 AM(UTC)
vijayakumar
Rank: Advanced Member

Groups: Registered
Joined: 4/27/2010(UTC)
Posts: 31
Location: chennai

Hi friends
can anybody tell if i click the point in bar chart it will go to other activity?




Thanks
Baydalka Volodymyr  
#2 Posted : Thursday, July 15, 2010 7:35:58 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

Please, check the Activity.startActivity method.

Best regards,

Edited by user Thursday, July 15, 2010 7:37:12 PM(UTC)  | Reason: Not specified

Volodymyr Baydalka
Andriod development and support team
vijayakumar  
#3 Posted : Friday, July 16, 2010 10:23:09 AM(UTC)
vijayakumar
Rank: Advanced Member

Groups: Registered
Joined: 4/27/2010(UTC)
Posts: 31
Location: chennai

Hi Volodymyr Baydalka,

Thanks for replied actually my requirment is if i click the point it will go to other activity in bar chart
I written the code but this code is not working

chartView.setOnClickListener(this);

Code:


ChartView chartView = (ChartView)v;
			ChartSeries series=chartView.getSeries().get(0);
				if(event.getAction() == MotionEvent.ACTION_DOWN)
			{
				
			List<?> objs = chartView.hitTest((int)event.getX(),(int)event.getY());
	    	for (Object object : objs)
			{
				
				 
				if(object instanceof ChartPoint)
				{
					m_point = (ChartPoint)object;
					Intent market = new Intent(this,MarketRevenue.class); 
			market.putExtra("profile", profile);
		   startActivity(market);
				
				}
			}




vijayakumar  
#4 Posted : Friday, July 16, 2010 12:24:39 PM(UTC)
vijayakumar
Rank: Advanced Member

Groups: Registered
Joined: 4/27/2010(UTC)
Posts: 31
Location: chennai

if i click the point some event will occur in bar chart. can u provide some example?
Baydalka Volodymyr  
#5 Posted : Friday, July 16, 2010 1:20:39 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

Check this sample :

Brest regards,
File Attachment(s):
DrillDownSample.zip (15kb) downloaded 6 time(s).

You cannot view/download attachments. Try to login or register.
Volodymyr Baydalka
Andriod development and support team
vijayakumar  
#6 Posted : Friday, July 16, 2010 2:14:58 PM(UTC)
vijayakumar
Rank: Advanced Member

Groups: Registered
Joined: 4/27/2010(UTC)
Posts: 31
Location: chennai

Hi Volodymyr Baydalka,

Thanks I got actually I missed this line

chartView.setHitTestEnabled(true);


Users browsing this topic
Guest (2)
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.