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

ChartArea Border

Thread ID:





80228 Mar 23,2009 03:54 PM UTC Mar 26,2009 10:36 AM UTC WinForms 4
Tags: Chart
Oliver G
Asked On March 23, 2009 03:54 PM UTC

another time I am stucked at don't know how to get rid of something.
I have attached a screenshot. I am trying to get rid off the small black border surrounding the chart area.
I tried to do this in several ways, for example

and many others

etc. None of this worked. Any help, as always, is highly aprpeciated.
Tx and regards


Manimala S [Syncfusion]
Replied On March 24, 2009 12:38 PM UTC

Hi Oliver,

You can do this in the following way.

this.chartControl1.ChartArea.BorderStyle = BorderStyle.None;

Kindly, let me know if it satisfies your requirement.


Oliver G
Replied On March 24, 2009 01:49 PM UTC

Unfortunately this did not work either, the bacl lines are still there.

Instead I tried the following piece of code but for some reason ther is still a small bacl lie on the left (probably the y axis.

foreach (ChartAxis chartaxis in _ChartControl.Axes)
//chartaxis.GridLineType.ForeColor = System.Drawing.Color.Transparent;
//chartaxis.GridLineType.PenType = System.Drawing.Drawing2D.PenType.PathGradient;
//chartaxis.GridLineType.Width = 5F;

If it can't be changed, then I have to accept it :-(

Tx and regards

Oliver G
Replied On March 24, 2009 01:50 PM UTC

I meant black line on the left. Sorry

Manimala S [Syncfusion]
Replied On March 26, 2009 10:36 AM UTC

Hi Oliver,

Here is the code to remove the border of the chart control.

this.chartControl1.BorderAppearance.SkinStyle = ChartBorderSkinStyle.None;

Kindly, let me know if it helps.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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