TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
Hexalog
- Newbie
- Posts: 10
- Joined: Tue Jan 25, 2005 5:00 am
Post
by Hexalog » Fri Mar 28, 2008 1:11 pm
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 ?
-
Narcís
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
Post
by Narcís » Fri Mar 28, 2008 3:38 pm
Hi Hexalog,
Yes try this:
Code: Select all
aChart.Chart.Panel.BorderRound = 1;
-
Hexalog
- Newbie
- Posts: 10
- Joined: Tue Jan 25, 2005 5:00 am
Post
by Hexalog » Mon Mar 31, 2008 12:36 pm
Amazing this trick works
Thanks so much !
-
Bernhard Hard
- Newbie
- Posts: 9
- Joined: Fri Mar 14, 2008 12:00 am
Post
by Bernhard Hard » Mon Feb 09, 2009 9:57 am
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
-
Sandra
- Site Admin
- Posts: 3132
- Joined: Fri Nov 07, 2008 12:00 am
Post
by Sandra » Mon Feb 09, 2009 10:49 am
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