Page 1 of 1

Volume series start below zero

Posted: Wed Jan 14, 2009 3:31 pm
by 13048950
Hello,

I've noticed that when displaying a Volume series, the lines are drawn starting below zero, instead of in line with the zero mark.

Image

Is this a known behavior/issue?

I can submit sample code if needed, but this is pretty much out-of-the-box behavior.

Thanks!

-pete-

Posted: Wed Jan 14, 2009 3:39 pm
by narcis
Hi pete,

This is most likely because you are setting MinimumOffset for the left axis, isn't it?

I could reproduce the issue here using this code:

Code: Select all

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

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

			Steema.TeeChart.Styles.Volume volume1 = new Steema.TeeChart.Styles.Volume(tChart1.Chart);

			volume1.FillSampleValues();

			tChart1.Axes.Left.EndPosition = 90;
			tChart1.Axes.Left.MinimumOffset = 15;
		}
Anyway, I have added the issue to the wish-list to be considered for inclusion in future releases.

Posted: Wed Jan 14, 2009 3:59 pm
by 13048950
Actually, I wasn't setting minimum offset explicitly. I will look into that and see if it takes care of the issue.

Thanks for the quick response!

-pete-