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

barchart click the point go to other activity Options · View
vijayakumar
#1 Posted : Thursday, July 15, 2010 9:20:55 AM
Rank: Advanced Member

Groups: Registered

Joined: 4/27/2010
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 5:35:58 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
Hi,

Please, check the Activity.startActivity method.

Best regards,
Volodymyr Baydalka
Andriod development and support team
vijayakumar
#3 Posted : Friday, July 16, 2010 8:23:09 AM
Rank: Advanced Member

Groups: Registered

Joined: 4/27/2010
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 10:24:39 AM
Rank: Advanced Member

Groups: Registered

Joined: 4/27/2010
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 11:20:39 AM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
Hi,

Check this sample :

Brest regards,
File Attachment(s):
DrillDownSample.zip (15kb) downloaded 6 time(s).
Volodymyr Baydalka
Andriod development and support team
vijayakumar
#6 Posted : Friday, July 16, 2010 12:14:58 PM
Rank: Advanced Member

Groups: Registered

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