Hi
I want to know how can i draw a black horizontal line from 0 in Y axis which goes till the Right axis of chart.There are negative values to show in the bar chart and so we need this to clearly show the left axis at 0 level. I have uploaded the screenshot of what i am looking for.
black horizontal line from 0 in Y axis
Re: black horizontal line from 0 in Y axis
Screenshot name is Screenshot.docx.
Re: black horizontal line from 0 in Y axis
Hi shikha,
You could use a color line tool or you could draw a line directly to the canvas manually:
You could use a color line tool or you could draw a line directly to the canvas manually:
Code: Select all
void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
{
tChart1.Graphics3D.Pen.Color = Color.Red;
tChart1.Graphics3D.Line(new Point(tChart1.Axes.Bottom.IStartPos, tChart1.Axes.Left.CalcPosValue(0)), new Point(tChart1.Axes.Bottom.IEndPos,tChart1.Axes.Left.CalcPosValue(0)));
}
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: black horizontal line from 0 in Y axis
it worked!! Thanks a tonne.