title: How to move the first domain label one step from origin
body: <p>I've implemented AndroidPlot in my app and it works fine however I need the first value one step after origin since the date is not clear. </p>
  
  <p>I tried the suggested solution in the asked questions <a href="https://stackoverflow.com/questions/16057175/androidplot-domain-labels-from-1-to-11">here</a> where they add the setDomainValueFormat method however error message displays:</p>
  
  <blockquote>
    <p>"method can't resolve "</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/A3mWs.png" alt="andriodplot"></p>
  
  <p>Any suggestion how to start x axis domain one step after origin? </p>
  
  <pre class="lang-js prettyprint-override"><code>plot = (XYPlot) findViewById(R.id.plot);
  
          XYSeries series = new SimpleXYSeries(Arrays.asList(dates_in_m_seconds), Arrays.asList(values_as_numbers), "BP Status");
  
          LineAndPointRenderer and configure them
          LineAndPointFormatter seriesFormat = new LineAndPointFormatter(Color.RED, Color.GREEN,null, null);
  
  
                 plot.addSeries(series, seriesFormat);
  
          // Specify x and y axes labels amount
          plot.setRangeStep(StepMode.SUBDIVIDE,3);
          plot.setDomainStep(StepMode.SUBDIVIDE,dates.size());
  
                 plot.getGraph().getLineLabelStyle(XYGraphWidget.Edge.BOTTOM).setFormat(new Format() {
              @Override
  
              public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) {
  
  
                  Date date_Label = new Date(Math.round(((Number) obj).doubleValue()));
  
                  return format.format(date_Label, toAppendTo, pos);
              }
  
              @Override
              public Object parseObject(String source, ParsePosition pos) {
                  return null;
              }
          });
  
  
  
          plot.getGraph().getLineLabelStyle(XYGraphWidget.Edge.LEFT).setFormat(new Format() {
  
  
              @Override
  
              public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) {
  
                  Number num = (Number) obj;
                  switch (num.intValue()) {
                      case 0:
                          toAppendTo.append("Low");
                          break;
                      case 1:
                          toAppendTo.append("Normal");
                          break;
                      case 2:
                          toAppendTo.append("High");
                          break;
  
                      default:
                          toAppendTo.append("Unknown");
                          break;
                  }
                  return toAppendTo;
  
              }
  
              @Override
              public Object parseObject(String source, ParsePosition pos) {
                  return null;
              }
          });
  
  
              }
  </code></pre>