Page 1 of 1

Border

Posted: Fri Oct 24, 2008 11:58 am
by 13048945
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

Posted: Tue Oct 28, 2008 2:07 pm
by narcis
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;
		}