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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Bring stripline to front

Thread ID:

Created:

Updated:

Platform:

Replies:

73283 Apr 29,2008 08:01 AM UTC Apr 30,2008 07:24 AM UTC ASP.NET Web Forms (Classic) 2
loading
Tags: Chart
Nizar Kriaa
Asked On April 29, 2008 08:01 AM UTC

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

John Iwasz
Replied On 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


Bhuvaneswari P [Syncfusion]
Replied On 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



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;