Border

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
edgemeistergeneral
Newbie
Newbie
Posts: 1
Joined: Thu Apr 24, 2008 12:00 am

Border

Post by edgemeistergeneral » Fri Oct 24, 2008 11:58 am

Hi,

firstly:
how do you remove the outer chart border i.e. the very outer one that goes around everything? I have tried setting all borders I can find to 0 but it still shows.

secondly:
I have a horizontal bar chart that goes from negative to positive. Is it possible to make a vertical solid line on the zero value but no other grid lines?

thanks in advance

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Oct 28, 2008 2:07 pm

Hi edgemeistergeneral,

Sorry for the late reply.
firstly:
how do you remove the outer chart border i.e. the very outer one that goes around everything? I have tried setting all borders I can find to 0 but it still shows.
You should set Panel Bevels:

Code: Select all

			tChart1.Panel.Bevel.Inner = Steema.TeeChart.Drawing.BevelStyles.None;
			tChart1.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None;
secondly:
I have a horizontal bar chart that goes from negative to positive. Is it possible to make a vertical solid line on the zero value but no other grid lines?
Yes, you could use a ColorLine tool for that and hide axes grid, for example:

Code: Select all

		public Form1()
		{
			InitializeComponent();
			InitializeChart();
		}

		private void InitializeChart()
		{
			tChart1.Aspect.View3D = false;

			Steema.TeeChart.Styles.HorizBar horizBar1 = new Steema.TeeChart.Styles.HorizBar(tChart1.Chart);

			horizBar1.Add(-5);
			horizBar1.Add(-2);
			horizBar1.Add(1);
			horizBar1.Add(3);
			horizBar1.Add(5);

			Steema.TeeChart.Tools.ColorLine colorLine1 = new Steema.TeeChart.Tools.ColorLine(tChart1.Chart);

			colorLine1.Axis = tChart1.Axes.Bottom;
			colorLine1.Value = 0;
			colorLine1.AllowDrag = false;

			tChart1.Axes.Bottom.Grid.Visible = false;
			tChart1.Axes.Left.Grid.Visible = false;
		}
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply