# GrapeCity.ActiveReports.Chart.DataPointsCollection.DataBindY

## Content

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



<h1 id="GrapeCity_ActiveReports_Chart_DataPointsCollection_DataBindY_" data-uid="GrapeCity.ActiveReports.Chart.DataPointsCollection.DataBindY*">DataBindY Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Chart_DataPointsCollection_DataBindY_" data-uid="GrapeCity.ActiveReports.Chart.DataPointsCollection.DataBindY*"></a>
<h4 id="GrapeCity_ActiveReports_Chart_DataPointsCollection_DataBindY_System_Object_System_String_" data-uid="GrapeCity.ActiveReports.Chart.DataPointsCollection.DataBindY(System.Object,System.String)">DataBindY(object, string)</h4>
<div class="markdown level1 summary"><p>Binds the Y value(s) of the collection's DataPoints to the specified column(s) of the specified data source.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DataBindY(object yDataSource, string yFields)</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.object">object</a></td>
      <td><span class="parametername">yDataSource</span></td>
      <td><p>Specifies the data source object that provides the Y value(s).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">yFields</span></td>
      <td><p>Specifies the data source field(s) to which to bind DataPoints.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Chart_DataPointsCollection_DataBindY_" data-uid="GrapeCity.ActiveReports.Chart.DataPointsCollection.DataBindY*"></a>
<h4 id="GrapeCity_ActiveReports_Chart_DataPointsCollection_DataBindY_System_Collections_IEnumerable___" data-uid="GrapeCity.ActiveReports.Chart.DataPointsCollection.DataBindY(System.Collections.IEnumerable[])">DataBindY(params IEnumerable[])</h4>
<div class="markdown level1 summary"><p>Binds the Y value(s) of the collection's DataPoints to the first column of the specified data source(s).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DataBindY(params IEnumerable[] yEnumerableValues)</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.collections.ienumerable">IEnumerable</a>[]</td>
      <td><span class="parametername">yEnumerableValues</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Chart_DataPointsCollection_DataBindY_" data-uid="GrapeCity.ActiveReports.Chart.DataPointsCollection.DataBindY*"></a>
<h4 id="GrapeCity_ActiveReports_Chart_DataPointsCollection_DataBindY_System_Double_____" data-uid="GrapeCity.ActiveReports.Chart.DataPointsCollection.DataBindY(System.Double[][])">DataBindY(params double[][])</h4>
<div class="markdown level1 summary"><p>Binds the Y values of the collection's DataPoints to a specified data source.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DataBindY(params double[][] yValues)</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">yValues</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
