2
我使用AchartEngine
創建了具有多個系列的折線圖。我如何使x軸非線性?AchartEngine折線圖x軸刻度
在中,而不是有2,4,6,8,10的x軸。我希望它去2,4,8,16,32。我已經嘗試使用x.add(new double[] { 2, 4, 8, 16, 32 });
,但只是展開圖中的點
我使用AchartEngine
創建了具有多個系列的折線圖。我如何使x軸非線性?AchartEngine折線圖x軸刻度
在中,而不是有2,4,6,8,10的x軸。我希望它去2,4,8,16,32。我已經嘗試使用x.add(new double[] { 2, 4, 8, 16, 32 });
,但只是展開圖中的點
我找到了一個解決方案:
x.add(new double[] { 1, 2, 3, 4, 5});
和
renderer.setXLabels(0);
renderer.addXTextLabel(1, "2");
renderer.addXTextLabel(2, "4");
renderer.addXTextLabel(3, "8");
renderer.addXTextLabel(4, "16");
renderer.addXTextLabel(5, "32");