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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ChartArea Border

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi
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

_ChartControl.ChartArea.BorderStyle
_ChartControl.ChartArea.Bounds;
and many others

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



border_3498c8bb.zip

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.

Thanks,
Manimala.


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


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.

Thanks,
Manimala.


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

;