Series Click
Series Click
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?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Series Click
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.
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 |
Instructions - How to post in this forum |