0

TeeChart Label, when screen density > 1, wrong positioned on Y-Axis on Android and it gets worse the with density.

the "funny" thing is that it is the "displacement" or "depth" from the 3D model that i cant get rid off.

the same code on the iphone has no problems.

somehow it seams that Aspect.View3D = false does not do the same on android that it does on iphone.

I am using the Styles.Area()

a small ss of my problem https://i.sstatic.net/VGXPJ.jpg

edit: the chart code

using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using System.Drawing;

namespace App2
{
    [Activity(Label = "App2", MainLauncher = true, Icon = "@drawable/icon")]
    public class MainActivity : Activity
    {

    protected override void OnCreate(Bundle bundle)
    {
        base.OnCreate(bundle);
        Steema.TeeChart.TChart tChart1 = new Steema.TeeChart.TChart(this);
        Steema.TeeChart.Styles.Area area = new Steema.TeeChart.Styles.Area();
        tChart1.Series.Add(area);
        tChart1.Aspect.View3D = false;
        tChart1.Axes.Left.Visible = true;
        tChart1.Axes.Left.AutomaticMaximum = false;
        tChart1.Axes.Left.AutomaticMinimum = false;
        tChart1.Axes.Left.Maximum = 140;
        tChart1.Axes.Left.Minimum = 20;
        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); 
    }
}

}

5
  • Could you please provide a simple example project we can run "as-is" to reproduce the problem here and also let us know in which kind of Android device this problem occurs? You can post your files at www.steema.net/upload/ Commented Feb 6, 2015 at 16:10
  • it is currently not posible for me to give you the hole project. i have put the chart code in an edit, is this usefull? And the device i am using right now is an Nexus5 with density 3
    – Wind
    Commented Feb 9, 2015 at 11:58
  • we don't need your complete production project but a Short, Self Contained, Correct (Compilable), Example (sscce.org). That should suffice, thanks. Commented Feb 9, 2015 at 12:11
  • the upload page cannot take the 13mb file, that is the scrubbed down project. i have edited the code in the question to the "stand alone"
    – Wind
    Commented Feb 9, 2015 at 13:27
  • Just fixed the bug. Are you interested in a test assembly with the fix? Commented Feb 9, 2015 at 15:55

1 Answer 1

1

This looks like a bug to me. I have added it to Steema Software's bug tracking system (Bug #1128). It has already been fixed. If you are interested I can provide with test assembly with the fix. An evaluation version can be downloaded here.

2
  • Works like a charm! Thanks! When can we expect an updated (not eval ;) ) .dll ? My version is bought at the Xamarin strore i think.
    – Wind
    Commented Feb 10, 2015 at 8:27
  • @Wind please send an email to [email protected] with your license number mentioning this thread and we will provide a non-eval assembly. Commented Feb 10, 2015 at 8:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.