【发布时间】:2012-10-17 07:13:48
【问题描述】:
大家好,我是图表应用程序的新手。我使用 aChartEngine 为我的 android 应用程序创建了双折线图。我无法在图表中为 y 轴设置标签。
我有这样的图表.....
我该怎么做有人可以帮助我吗?提前致谢。
【问题讨论】:
标签: android achartengine linechart
大家好,我是图表应用程序的新手。我使用 aChartEngine 为我的 android 应用程序创建了双折线图。我无法在图表中为 y 轴设置标签。
我有这样的图表.....
我该怎么做有人可以帮助我吗?提前致谢。
【问题讨论】:
标签: android achartengine linechart
这将对您有所帮助:
// hide the default labels
mrenderer.setYLabels(0);
// set the custom labels
mrenderer.addYTextLabel(0, "$0");
mrenderer.addYTextLabel(20000, "$20K");
...
// set the visible range
mrenderer.setYAxisMin(0);
mrenderer.setYAxisMax(140000);
【讨论】: