Open 13006210190 opened 8 years ago
Here's how I did it
public class ReuseYAxisRenderer extends YAxisRenderer {
public ReuseYAxisRenderer(ViewPortHandler viewPortHandler, YAxis yAxis, Transformer trans) {
super(viewPortHandler, yAxis, trans);
}
@Override
protected void computeAxisValues(float min, float max) {
mAxis.mEntries = new float[]{};
super.computeAxisValues(min, max);
}
}
When i refresh the line chart with less mAxis.mEntries ,the Xaxis item index was wrong . if (mAxis.mEntries.length > n) ,there not new float[] .