Hallo,
i have a datachart with x-y Data, a legend etc..Now I want to get an x,y-value according to the datachart, if i click somewhere in the x-y-range.
Using 'PointToClient' and 'PointToScreen' I have the problem, not to know the real size of the chart - without the axis- and legend areas.
Any help appreciatedTorsten
Hello,
Could you please specify the exact type of the chart you are using UltraChart or UltraDataChart. If we talk about UltraDataChart, numeric axis has a method GetUnscaledValue(…) which could be used in order to get corresponding axis value based on a screen coordinates.
Please let me know if you have any further questions
Hi, I replied to your post yesterday morning (GMT+1), but it seems not to pass the "check" by infragistics....
I use UltraChart with some XYSeries and some properties to getthe picture I need. What I want to do ist to get x-y-coordinates related to the current cjhart image using crosshairs and mouseclick.
regards
tojo03
I have to state too, that we are using infragistics version 11.x resp. 13.x - do these versions contain the UltraDataChart? regards tojo03
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.
For UltraChart you should use Map() and MApInvertMethods to get corresponding data value from coordinates and vice versa. You could use code like:
var grid = ((Infragistics.UltraChart.Core.Layers.Layer)(this.ultraChart1.Layer["Default"])).Grid;
Infragistics.UltraChart.Core.Layers.NumericAxis xAxis = (Infragistics.UltraChart.Core.Layers.NumericAxis)grid["X"];
Infragistics.UltraChart.Core.Layers.NumericAxis yAxis = (Infragistics.UltraChart.Core.Layers.NumericAxis)grid["Y"];
double xCoord = xAxis.Map(dataValueOnX);
double yCoord = yAxis.Map(dataValueOnY);
double xValue = xAxis.MapInverse(xCoordOnChart);
double yValue = yAxis.MapInverse(yCoordOnChart);
Please let me know if you have any further questions.