I'm developing a script which shows the price of ArrowLine end. The code I use is the following
public override void Plot(Graphics graphics, Rectangle bounds, double min, double max)
SizeF stringSize = new SizeF() ;
ChartArrowLine l1 = (co as ChartArrowLine);
double bb = l1.StartBarsAgo;
double gg = l1.StartY;
int x2 = ????????????
int y2 = (bounds.Y + bounds.Height) - ((int)(((gg-min) / (max-min)) * bounds.Height))-30;
string s = l1.EndY.ToString(_priceFormat);
stringSize = graphics.MeasureString( s, largerFont ) ;
graphics.DrawString(s, largerFont, l1.Pen.Brush, x2, (y2), _format1);
I have the code to plot price label at Y-axis value equals to ArrowLine Start Y-axis value.
What is the ways to plot price label at X-axis value equals to ArrowLine Start X-axis value.
Please , help!
Comment