Volume series start below zero

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
PeteM
Newbie
Newbie
Posts: 6
Joined: Fri Apr 25, 2008 12:00 am

Volume series start below zero

Post by PeteM » Wed Jan 14, 2009 3:31 pm

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-

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

Post by Narcís » Wed Jan 14, 2009 3:39 pm

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.
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

PeteM
Newbie
Newbie
Posts: 6
Joined: Fri Apr 25, 2008 12:00 am

Post by PeteM » Wed Jan 14, 2009 3:59 pm

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-

Post Reply