Using Subchart to calculate screen coordinates
Posted: 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)
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)