Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 2070

Summary: Exp Axis Log Label formatting issue.
Product: .NET TeeChart Reporter: marc meumann <marc>
Component: AxesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: normal CC: chris
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: before fix
after fix

Description marc meumann 2018-08-10 12:06:08 EDT
Exp Axis Log Labels are spacing the superscript section too far away from the principal part of the Label.

See: https://www.steema.com/support/viewtopic.php?f=4&t=17002
Comment 1 christopher ireland 2018-08-16 05:41:45 EDT
Created attachment 847 [details]
before fix
Comment 2 christopher ireland 2018-08-16 05:42:21 EDT
Created attachment 848 [details]
after fix
Comment 3 christopher ireland 2018-08-16 05:43:48 EDT
Now fixed - using the following code you can see the results of the fix by comparing the 'before fix' and 'after fix' attachments

		private void InitializeChart()
		{

			Line line = new Line(tChart1.Chart);

			for (int i = 0; i < 100; i++)
			{
				line.Add(i * i * i, i * i * i * i);
			}

			tChart1.Axes.Bottom.Logarithmic = true;
			tChart1.Axes.Left.Logarithmic = true;

			tChart1.Axes.Left.Labels.Exponent = true;
			tChart1.Axes.Left.Labels.ValueFormat = "#.0x10 E+0";
			//tChart1.Axes.Left.Labels.ValueFormat = "10 E+0"; 

			tChart1.Axes.Bottom.Labels.Exponent = true;
			tChart1.Axes.Bottom.Labels.ValueFormat = "#.0x10 E+0";
			//tChart1.Axes.Bottom.Labels.ValueFormat = "10 E+0";
		}