ChartArea Border

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

4 Replies

MS Manimala S Syncfusion Team 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.



OG Oliver G 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



OG Oliver G March 24, 2009 01:50 PM UTC

I meant black line on the left. Sorry



MS Manimala S Syncfusion Team 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.


Loader.
Up arrow icon