We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Bring stripline to front

Hi

I'am using syncfusion for web site developping.

My question is, is there any possibliities to bring a stripline in front of a chart?

I was trying since two days and did not found any solution.

 

Cheers





Savings_Tool.zip

2 Replies

JI John Iwasz April 29, 2008 05:49 PM UTC

I'm also trying to do the same thing. Also haven't yet met with success. Looking forward to a response with a solution.

John



BP Bhuvaneswari P Syncfusion Team April 30, 2008 07:24 AM UTC

Hi John,

Thank you for your interest in Syncfusion products.

We cann’t bring the StipLine in front of the chart because of our implementation is like that. It will show only back. Instead of bringing the chart StripLine, as a workaround we can draw a line to reflect like chart StripLine. Draw the line in the ChartAreaPaint event. Please refer the below code snippet to do so:

[C#]
void ChartWebControl1_ChartAreaPaint(object sender, System.Windows.Forms.PaintEventArgs e)
{
Point pt1 = new Point(90, 240);
pt1.Y = pt1.Y - 80;
Point pt2 = new Point(340, 240);
pt2.Y = pt2.Y - 80;
e.Graphics.DrawLine(new Pen(Color.Brown, 8), pt1, pt2);
pt2 = new Point(pt2.X - 20, pt2.Y);

// e.Graphics.DrawString("Strip Line", new Font("Tahoma", 18), new SolidBrush(Color.DarkOrange), new RectangleF(pt2, new SizeF(pt1)), new StringFormat(StringFormatFlags.NoWrap));

}


Please download the sample from the below location:

http://websamples.syncfusion.com/samples/Chart.Web/6.2.0.40/P44881/main.htm


Please let us know if this helps you.
Best Regards,
Bhuvana



Loader.
Live Chat Icon For mobile
Up arrow icon