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 1128

Summary: Wrong vertical label alignment with density > 1 devices
Product: .NET TeeChart Reporter: narcís calvet <narcis>
Component: AndroidAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement CC: narcis
Priority: ---    
Version: TeeChart.NET 2014 4.1.2014.02060   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://stackoverflow.com/questions/28369636/teechart-label-when-screen-density-1-wrong-positioned-on-y-axis-on-android
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: label alignment comparison.

Description narcís calvet 2015-02-09 09:34:32 EST
Created attachment 396 [details]
label alignment comparison.

Axis labels are badly vertical aligned with devices with density > 1, for example Nexus 5. This can be reproduced with the code snippet below or any example in the TeeChart for Xamarin.Android demo. See attached image reproducing the problem.

      Steema.TeeChart.TChart tChart1 = new Steema.TeeChart.TChart(this);
      Steema.TeeChart.Styles.Area area = new Steema.TeeChart.Styles.Area(tChart1.Chart);

      tChart1.Aspect.View3D = false;

      tChart1.Axes.Left.SetMinMax(20, 140);
      tChart1.Axes.Left.Labels.Items.Add(40, " 40");
      tChart1.Axes.Left.Labels.Items.Add(60, " 60");
      tChart1.Axes.Left.Labels.Items.Add(80, " 80");
      tChart1.Axes.Left.Labels.Items.Add(100, "100");
      tChart1.Axes.Left.Labels.Items.Add(120, "[dB]");

      SetContentView(tChart1);