public override Int32 CalcXPos(Int32 valueIndex)
Remarks
Returns the pixel Screen Horizontal coordinate of the ValueIndex Series value.
This coordinate is calculated using the Series associated Horizontal Axis.
Example
We want to draw a line from the top left corner to each point.
[C#]
if (tChart1[0].Count>0)
for (int i=0;i<tChart1[0].Count;i++)
{
//using Series' index
int tmpX=tChart1[0].CalcXPos(i); //returning pixel value
int tmpY=tChart1[0].CalcYPos(i);
//Drawline from 0,0 to point
tChart1.Graphics3D.Line(0,0,tmpX,tmpY);
}
See Also
Bar Class | Bar Members | Steema.TeeChart.Styles Namespace