Using Subchart to calculate screen coordinates

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
lilo
Newbie
Newbie
Posts: 62
Joined: Wed Sep 07, 2011 12:00 am

Using Subchart to calculate screen coordinates

Post by lilo » Mon May 21, 2012 11:58 am

I need to calculate the screen coordinates of a point in a sub chart. The subchart displays correctly but the screen coordinate calclulation always returns zero.

Dim chart = SubChartTool1.Charts.AddChart("Chart0")
chart.Series.Add(New Steema.TeeChart.Styles.Points())
Dim Temp1 as Single
X1 = some real coordinate value (97)
Temp1 = chart.Chart(0).CalcXPosValue(X1)

lilo
Newbie
Newbie
Posts: 62
Joined: Wed Sep 07, 2011 12:00 am

Re: Using Subchart to calculate screen coordinates

Post by lilo » Mon May 21, 2012 12:20 pm

I needed to update the chart by calling TChart1.Draw before the calculation. Problem solved.

Post Reply