Page 1 of 1
Series Click
Posted: Fri Nov 05, 2010 12:25 pm
by 13052926
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?
Re: Series Click
Posted: Fri Nov 05, 2010 2:43 pm
by narcis
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.