AchartEngine:如何使用的TimeSeries与两个不同的尺度 [英] AchartEngine: How to use TimeSeries with two different scales

查看:190
本文介绍了AchartEngine:如何使用的TimeSeries与两个不同的尺度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于AchartEngine API中的TimeSeries Construstor只取字符串作为参数,并没有其他的参数传递作为规模参数。因此,如何我将与两个不同的尺度使用它

As TimeSeries Construstor of AchartEngine API take only string as argument and have no other argument to pass as a scale argument. So how I will use it with two different scales

感谢

推荐答案

我建议你不要尝试使用的TimeSeries 多尺度图表。

I suggest you don't try to use TimeSeries for multiple scales charting.

您将能更好地建立一个定期的多个刻度线图,在X轴上设置时间戳和设置您的自定义标签。

You would better build a regular multiple scale line chart, set timestamps on the X axis and set your custom labels.

// disable the default labels
renderer.setXLabels(0);
// add your formatted dates, several of these calls
renderer.addXTextLabel(x, "formatted date");

这篇关于AchartEngine:如何使用的TimeSeries与两个不同的尺度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆