Page 1 of 1

What property to suppress frame surrounding chart

Posted: Fri Mar 28, 2008 1:11 pm
by 9340723
Using default chart theme a frame is shown around the WebChart.

I am already setting those properties but that mysterious frame remains visible:

Code: Select all

      aChart.Chart.Aspect.View3D = false;
      aChart.Chart.Panel.Bevel.Inner = BevelStyles.None;
      aChart.Chart.Panel.Bevel.Outer = BevelStyles.None;
      aChart.Chart.Panel.Bevel.Width = 0;
      aChart.Chart.Panel.Shadow.Visible = false;
      aChart.Chart.Panel.Brush.Gradient.Visible = false;
      aChart.Chart.Panel.Color = Color.White;
      aChart.Chart.Header.Visible = false;
      aChart.Chart.Legend.Visible = false;
      aChart.Chart.Walls.Back.Pen.Visible = false;
I also tried to play with aChart.Border* properties but this does not seems to change anything.

At moment, the only way I found to remove it, was to use the "classic" theme. Is there any other way to remove that 1px grey frame ?

Posted: Fri Mar 28, 2008 3:38 pm
by narcis
Hi Hexalog,

Yes try this:

Code: Select all

		aChart.Chart.Panel.BorderRound = 1;

Posted: Mon Mar 31, 2008 12:36 pm
by 9340723
Amazing this trick works 8)

Thanks so much !

Border around chart diagram

Posted: Mon Feb 09, 2009 9:57 am
by 13048624
I have the same problem with the border right around the diagram area of the chart
(not chart panel borders).

Setting

tChart1.Chart.Axes.Left.AxisPen.Color
tChart1.Chart.Axes.Bottom.AxisPen.Color


property, I can get rid of the left and bottom axis (or change their color).
Top and right still remain and cannot be set by this trick - as they are not explicitly used in the chart - ?

What can I do to set their color?

Thanks in advance,
Chris

Posted: Mon Feb 09, 2009 10:49 am
by 10050769
Hi Chris!

When you creat Chart for default Left and Bottom axes and Back wall are visible. If you desable Back wall you could make the changes you want to Right and Top Axes, you needs do the next line of code for desable Back wall:

Code: Select all

 tChart1.Chart.Walls.Back.Visible = false;

I hope you have been served my help