Nearest Point tool has a bad behavior in BoxPlot chart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
SiA
Newbie
Newbie
Posts: 43
Joined: Wed Mar 10, 2004 5:00 am

Nearest Point tool has a bad behavior in BoxPlot chart

Post by SiA » Wed May 24, 2006 2:35 pm

Hi,

:arrow: "Nearest point" tool used in a BoxPlot chart containing more than one BoxPlot (at different positions). The "Nearest Point" tool seems to work horizontally instead of vertically (BoxPlot works like a "vertical" series).

:idea: Steps to reproduce :
- Create a chart containing two or more BoxPlot at different positions
- Add one "Nearest point" tool associated to one the BoxPlot series
- Compile, run
- Move your mouse over chart and observe "Nearest point" works horizontally :?

:?: How can I resolve this problem?

Best regards

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu May 25, 2006 4:14 pm

Hi,

yes, the Nearest Point tool has not been prepared for this type of Chart.

A trick could be to add a fake series (for example TPointSeries) adding the same number of points as boxes you have, with a specific YValue (to the position you prefer, center of box for example), then set the color of the Serie to clNone to hide it, PointSeries.ShowInLegend:=False, and assign the TPoint Series as a the TNearestPoint tool Serie.

Post Reply