【发布时间】:2015-02-06 15:54:52
【问题描述】:
TeeChart 标签,当屏幕密度 > 1 时,Android 上 Y 轴位置错误 而且随着密度的增加会变得更糟。
“有趣”的地方在于,我无法摆脱 3D 模型的“位移”或“深度”。
在 iphone 上相同的代码没有问题。
不知何故,Aspect.View3D = false 在 android 上的作用与在 iphone 上的作用不同。
我正在使用 Styles.Area()
我的一个小问题http://i.imgur.com/cYFSm8c.jpg
编辑:图表代码
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);
}
}
}
【问题讨论】:
-
您能否提供一个简单的示例项目,我们可以“按原样”运行以在此处重现问题,并让我们知道此问题发生在哪种 Android 设备上?您可以将文件发布在 www.steema.net/upload/
-
目前我无法给你打洞项目。我已将图表代码放入编辑中,这有用吗?我现在使用的设备是密度为 3 的 Nexus5
-
我们不需要您完整的生产项目,而是需要一个简短、自包含、正确(可编译)的示例 (sscce.org)。应该够了,谢谢。
-
上传页面不能取13mb的文件,就是被清理掉的项目。我已将问题中的代码编辑为“独立”
-
感谢您的信息。请看我的回复。