# C1.Xamarin.Forms.Chart.ChartAxis.ScrollTo

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Xamarin_Forms_Chart_ChartAxis_ScrollTo_" data-uid="C1.Xamarin.Forms.Chart.ChartAxis.ScrollTo*">ScrollTo Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Xamarin_Forms_Chart_ChartAxis_ScrollTo_" data-uid="C1.Xamarin.Forms.Chart.ChartAxis.ScrollTo*"></a>
<h4 id="C1_Xamarin_Forms_Chart_ChartAxis_ScrollTo_System_Double_C1_Xamarin_Forms_Chart_AxisScrollPosition_" data-uid="C1.Xamarin.Forms.Chart.ChartAxis.ScrollTo(System.Double,C1.Xamarin.Forms.Chart.AxisScrollPosition)">ScrollTo(double, AxisScrollPosition)</h4>
<div class="markdown level1 summary"><p>Scrolls to the specified data value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ScrollTo(double dataValue, AxisScrollPosition axisScrollPosition)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">dataValue</span></td>
      <td><p>Data value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Xamarin.Forms.Chart.AxisScrollPosition.html">AxisScrollPosition</a></td>
      <td><span class="parametername">axisScrollPosition</span></td>
      <td><p>Axis scroll position enum.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Xamarin_Forms_Chart_ChartAxis_ScrollTo_" data-uid="C1.Xamarin.Forms.Chart.ChartAxis.ScrollTo*"></a>
<h4 id="C1_Xamarin_Forms_Chart_ChartAxis_ScrollTo_System_DateTime_C1_Xamarin_Forms_Chart_AxisScrollPosition_" data-uid="C1.Xamarin.Forms.Chart.ChartAxis.ScrollTo(System.DateTime,C1.Xamarin.Forms.Chart.AxisScrollPosition)">ScrollTo(DateTime, AxisScrollPosition)</h4>
<div class="markdown level1 summary"><p>Scrolls to the specified date time value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ScrollTo(DateTime dateTime, AxisScrollPosition axisScrollPosition)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">dateTime</span></td>
      <td><p>Date time.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Xamarin.Forms.Chart.AxisScrollPosition.html">AxisScrollPosition</a></td>
      <td><span class="parametername">axisScrollPosition</span></td>
      <td><p>Axis scroll position enum.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
