# GrapeCity.ActiveReports.Chart.DataPointsCollection.AddXY

## Content

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



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



<a id="GrapeCity_ActiveReports_Chart_DataPointsCollection_AddXY_" data-uid="GrapeCity.ActiveReports.Chart.DataPointsCollection.AddXY*"></a>
<h4 id="GrapeCity_ActiveReports_Chart_DataPointsCollection_AddXY_System_Object_System_Double___" data-uid="GrapeCity.ActiveReports.Chart.DataPointsCollection.AddXY(System.Object,System.Double[])">AddXY(object, params double[])</h4>
<div class="markdown level1 summary"><p>Adds a DataPoint with the specified parameters to the DataPointsCollection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int AddXY(object xValue, params double[] yValue)</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">xValue</span></td>
      <td><p>Specifies the X value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</td>
      <td><span class="parametername">yValue</span></td>
      <td><p>Specifies the Y values.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>System.Int32.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
