Is it possible to create a chart with fixed x and y values? My x values are 60, 90, 120, 180, 250, 375, 500, 750, 1000, but androidplot creates 9 different values based on equal distances between the values.
Number[] timestamps = {60, 90, 120, 180, 250, 375, 500, 750, 1000};
I am using mySimpleXYPlot.setDomainStep (XYStepMode.SUBDIVIDE, 9); and I think the solution is around this team, but I don’t know how to do it.

Full code:
mySimpleXYPlot = (XYPlot) findViewById(R.id.mySimpleXYPlot);
Number[] numSightings = {70, 63, 56, 49, 43, 37, 32, 27, 23};
Number[] timestamps = {
60, 90, 120, 180, 250, 375, 500, 750, 1000
};
XYSeries series2 = new SimpleXYSeries(
Arrays.asList(timestamps),
Arrays.asList(numSightings),
"USA");
mySimpleXYPlot.getGraphWidget().getGridBackgroundPaint().setColor(Color.WHITE);
mySimpleXYPlot.getGraphWidget().getGridLinePaint().setColor(Color.BLACK);
mySimpleXYPlot.getGraphWidget().getGridLinePaint().setPathEffect(new DashPathEffect(new float[]{1,1}, 1));
mySimpleXYPlot.getGraphWidget().getDomainOriginLinePaint().setColor(Color.BLACK);
mySimpleXYPlot.getGraphWidget().getRangeOriginLinePaint().setColor(Color.BLACK);
mySimpleXYPlot.setBorderStyle(Plot.BorderStyle.SQUARE, null, null);
mySimpleXYPlot.getBorderPaint().setStrokeWidth(1);
mySimpleXYPlot.getBorderPaint().setAntiAlias(false);
mySimpleXYPlot.getBorderPaint().setColor(Color.WHITE);
LineAndPointFormatter series1Format = new LineAndPointFormatter(
Color.rgb(0, 100, 0),
Color.rgb(0, 100, 0),
Color.rgb(100, 200, 0));
Paint lineFill = new Paint();
lineFill.setAlpha(200);
lineFill.setShader(new LinearGradient(0, 0, 0, 250, Color.WHITE, Color.GREEN, Shader.TileMode.MIRROR));
LineAndPointFormatter formatter = new LineAndPointFormatter(Color.rgb(0, 0,0), Color.BLUE, Color.RED);
formatter.setFillPaint(lineFill);
mySimpleXYPlot.getGraphWidget().setPaddingRight(2);
mySimpleXYPlot.addSeries(series2, formatter);
mySimpleXYPlot.setDomainStep(XYStepMode.SUBDIVIDE, 9);
mySimpleXYPlot.setRangeBoundaries(-20,100, BoundaryMode.FIXED);
mySimpleXYPlot.setDomainLabel("Frequency (Hz)");
mySimpleXYPlot.setRangeLabel("Loud pressure (dB)");
mySimpleXYPlot.getLegendWidget().setVisible(false);
mySimpleXYPlot.setRangeValueFormat(new DecimalFormat("0"));
mySimpleXYPlot.disableAllMarkup();