我正在研究 achartengine 条形图。y 轴上的值以十亿为单位。当值超出屏幕时,没有足够的空间来容纳这些值。我想将 1000 更改为 K,将 Million 更改为 M ,以便在屏幕上轻松容纳值。请提出任何方法来实现这一点。
问问题
103 次
1 回答
1
As far as I know there is no standart method or any way to do this. If you really need this, download source code and modify it. You will have to customise Renderer class.
Or you can do this:
// rendered
XYMultipleSeriesRenderer rootRenderer = new XYMultipleSeriesRenderer();
rootRenderer.setBarSpacing(1);
rootRenderer.setXLabels(0);
rootRenderer.addXTextLabel(1, "1k");
rootRenderer.addXTextLabel(2, "2k");
于 2013-08-08T07:30:58.493 回答