If a CrosshairLayer is applied to a chart containing multiple ScatterSeries and no TargetSeries is set. Various crosshairs will be displayed. It seems to be that the X/Y positions of the cross-points are calculated by some distance calculation. This results in different X values for display.
Is there a way to limit the Y-interpolations the same current X value corresponding to the mouse position?
ScatterSeries doesn't support interpolated annotations so the annations will always snap to the data point and appear calculated. What you could try using is a SplineSeries but your axis member paths would have to change as the CategoryXAxis values are designed to be equally distant.
I suggest submitting a feature request for annotations to adhere to `useInteropolation` for ScatterSeries.
You can suggest new product ideas for future versions (or vote for existing ones) at <www.infragistics.com/.../ideas>. Submitting your idea will allow you to communicate directly with our product management team, track the progress of your idea at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you. Remember when submitting your idea to explain the context in which a feature would be used and why it is needed as well as anything that would prevent you from accomplishing this today. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it.
Let me know if you have any questions.
Michael DiFilippoSoftware DeveloperInfragistics, Inc.
Hello Michael,
it is not a matter of interpolating annotations. It is a matter of finding the X related data items. I have attached a simplified example project to illustrate.
The crosshair mouse position could snap exactly to the same X values because they are identical. But they snap to the X/Y positions with smallest distance to the mouse cursor. This makes this option (multiple crosshairs for multiple series) nearly unusable.
CrosshairTest.zip
This is to be expected with a ScatterSeries. The crosshair is designed to flow with the mouse position hovering over the series, not the plot area. If the ScatterSeries supported UseInterpolation (which is currently does not) then you wouldn't see the snapping and crosshair would appear relative to the mouse position. Because there is snapping, having more than 1 crosshair visible is not recommended.What I would do personally is change the hook the chart's SeriesMouseEnter/Leave events and change what the TargetSeries is assigned to so that only 1 crosshair is visible at a time depending on which series is hovered. If you want the crosshair to move more freely on the plot area (not on the series directly) then I would use a SplineSeries and not a scatter series.
SplineSeries only wor with X CategoryAxes thus i could also use line series with interpolation.
This is not an option for my program because it has to display scatter time series.
Switching off the multiple annotations is switching off the behaviour which I want. This is paradox.
Again, to snap at identical X-values you do not need interpolation.
Dear Michael,
thank you for clarification.
I added a proposal to the ideas page => please vote
Thank for sharing your concerns. We recently added a DataToolTipLayer which exposes a GroupingMode property join the values where the mouse position is located for each series under one tooltip. This is something I wished was part of our CrosshairLayer or if we create a new DataCrosshairLayer with this option. I strongly recommend using the link above to submit a feature request as there is currently no known workarounds to circumvent this.