title: How to change the length of Y axis in robinhood/spark Library Sample?
body: <p><a href="https://github.com/robinhood/spark" rel="nofollow noreferrer">GitHub Library</a></p>
  
  <ol>
  <li>By default the the range of Y axis is between 0-1 , i want to change it to 0-2000?</li>
  <li>How to show the value of X axis in layout when scrubbed?</li>
  </ol>
  
  <p>Main Activity</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code> sparkView = findViewById(R.id.sparkview);
  
          adapter = new RandomizedAdapter();
          sparkView.setAdapter(adapter);
          sparkView.setScrubListener(new SparkView.OnScrubListener() {
              @Override
              public void onScrubbed(Object value) {
                  if (value == null) {
                      scrubInfoTextView.setText(R.string.scrub_empty);
                  } else {
                      scrubInfoTextView.setText(getString(R.string.scrub_format, value));
                  }
              }
          });</code></pre>
  </div>
  </div>
  </p>
  
  <p>SparkAdapter</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>  private final DataSetObservable observable = new DataSetObservable();
  
   
  public abstract int getCount();
  @NonNull
  public abstract Object getItem(int index);
  
  public float getX(int index) {
      return index;
  }
  public abstract float getY(int index);
  @NonNull
  public RectF getDataBounds() {
      final int count = getCount();
      final boolean hasBaseLine = hasBaseLine();
  
      float minY = hasBaseLine ? getBaseLine() : Float.MAX_VALUE;
      float maxY = hasBaseLine ? minY : -Float.MAX_VALUE;
      float minX = Float.MAX_VALUE;
      float maxX = -Float.MAX_VALUE;
      for (int i = 0; i &lt; count; i++) {
          final float x = getX(i);
          minX = Math.min(minX, x);
          maxX = Math.max(maxX, x);
  
          final float y = getY(i);
          minY = Math.min(minY, y);
          maxY = Math.max(maxY, y);
      }
      // set values on the return object
      return createRectF(minX, minY, maxX, maxY);
  }
  @VisibleForTesting
  RectF createRectF(float left, float top, float right, float bottom) {
      return new RectF(left, top, right, bottom);
  }
  public boolean hasBaseLine() {
      return false;
  }
  public float getBaseLine() {
      return 0;
  }
  public final void notifyDataSetChanged() {
      observable.notifyChanged();
  }
  public final void notifyDataSetInvalidated() {
      observable.notifyInvalidated();
  }
  public final void registerDataSetObserver(DataSetObserver observer) {
      observable.registerObserver(observer);
  }
  public final void unregisterDataSetObserver(DataSetObserver observer) {
      observable.unregisterObserver(observer);
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>I want output like this <a href="https://ibb.co/GkgymTf" rel="nofollow noreferrer">Image</a>  where on Scrubbing its shows Y and X axis both.</p>