Wind
Wind

Reputation: 3

TeeChart Label, when screen density > 1, wrong positioned on Y-Axis on Android

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); 
    }
}

}

Upvotes: 0

Views: 100

Answers (1)

Narcís Calvet
Narcís Calvet

Reputation: 7452

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.

Upvotes: 1

Related Questions