简体   繁体   English

在x轴上使用日期时间格式时,标签过多

[英]Too many labels when using datetime format on x-axis

When adding DateTime values to an Area series, the labels are repeated as shown below. DateTime值添加到Area系列时,标签将重复显示,如下所示。 How do you avoid this weirdness? 您如何避免这种怪异?

3个值,6个标签

Should be "31/12/2012" and "01/01/2013". 应为“ 31/12/2012”和“ 01/01/2013”​​。

You should set a DateTime increment for the bottom axis as explained in tutorial 4: 您应该按照教程4中的说明为下轴设置DateTime增量:

tChart1.getAxes().getBottom().setIncrement(Utils.getDateTimeStep(DateTimeStep.ONEDAY));

Tutorials can be found in the so called folder included with TeeChart files. 可以在TeeChart文件附带的所谓文件夹中找到教程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM