Series Click

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
rossmc
Newbie
Newbie
Posts: 57
Joined: Wed Apr 08, 2009 12:00 am

Series Click

Post by rossmc » Fri Nov 05, 2010 12:25 pm

I have a points series on my chart. When I right-click a series I determine which series was clicked in the series.mouseclick event. However if showing a lot of dates on bottom axis, one plotted point could cover more than 1 day. If I need to know specifically which day the point relates to how do I determine the exact x coordinate of the point?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Series Click

Post by Narcís » Fri Nov 05, 2010 2:43 pm

Hi rossmc,

This could become a little bit tricky as the limit here would be the number of pixels on the screen. In that sense there are a couple of things you can do:

1. Use FastLine series with DrawAllPoints property set to false. There are 2 different methods for plotting points when DrawAllPoints=False. You'll find an example at What's New?\Welcome!\New in Series\DrawAll Style in the new features demo available at TeeChart's program group.

2. Reduce the number of points being painted using DownSampling function as in the examples at All Features\Welcome!\Functions\Extended\Reducing number of points in the features demo.

I guess this is probably what you are not looking for but, as I said, I'm afraid the limit of detectable points are the number of pixels available on the screen. If you want to send us a simple example project showcasing this problem we can have a look at it here and we will try if we come up with a solution for it.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply