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

Markers questions Options · View
uri.m
#1 Posted : Wednesday, July 14, 2010 3:39:12 PM
Rank: Member

Groups: Registered

Joined: 6/20/2010
Posts: 12
Hey!

I started to use markers in my line graph. Had 2 major issues:
1. When the point y value is really small (or even 0) the marker is half gone because of the x axis. How can these be avoided? (see illustration)
2. Can markers receive clicks? I want my marker to open a balloon view in a onClick event.

Thanks,
Uri from tawkon.

Baydalka Volodymyr
#2 Posted : Thursday, July 15, 2010 6:09:48 PM
Rank: Developers Team


Groups: Registered, Administrators

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

1) Markers clipping is required by zooming feature. However, there is workaround to disable clipping. Just use following type instead ChartTypes.Line type:

Code:
static ChartLineType MY_LINE_TYPE = new ChartLineType()
{
    public void drawMarkers(ChartRenderArgs args)
    {
        Canvas c = args.Canvas;
        
        c.save();
        c.clipRect(0, 0, c.getWidth(), c.getHeight(), Op.UNION);
        super.drawMarkers(args);
        c.restore();
    };
};


2) Unfortunately, markers don't support hit-test, however, you may use points hit-test feature instead. Please check the LineHitTestSample sample from aiCharts package.

Best regards,
Volodymyr Baydalka
Andriod development and support team
uri.m
#3 Posted : Sunday, July 25, 2010 8:20:47 PM
Rank: Member

Groups: Registered

Joined: 6/20/2010
Posts: 12
Thank u!

Do u know any balloon like view/image I can use in order to describe a point (in an onTouch event). I would b happy no end up implementing it myself.

Thanks again!
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.