私が欲しいのは、x 軸が 0 から 15 までで、0 から 15 までのすべての整数に垂直グリッド線がある折れ線グラフです。ラベル、凡例、タイトルは必要ありません。
コードスニペット:
//don't want legend showing
mRenderer.setShowLegend(false);
//this is the only way i can force it to have grid lines every integer (note: if i make this number 14 then the graph puts only 8 labels ie 0, 2, 4, 6, 8, 10, 12, 14)
mRenderer.setXLabels(15);
//this removes all labels from y axis
mRenderer.setYLabels(0);
//i have to do this otherwise the setShowGridY statement is worthless
mRenderer.setShowLabels(true);
//i do want a grid on the y-plane (not x-plane)
mRenderer.setShowGridY(true);
//forces x axis to span from 0 to 15
mRenderer.setXAxisMax(15);
mRenderer.setXAxisMin(0);
このコードが行うことは、グリッド線とラベルを表示することです。グリッド線のみが必要ですが、これを行う場合: mRenderer.setShowLabels(false); その後、ラベルとグリッド線が消えます。
ラベルが有効になっている場合にのみグリッド線を使用できるようです。
誰でもこれで私を助けることができますか?
ありがとう、ティム