# C1.Report.DiagramChartField.DataSourceName

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Report_DiagramChartField_DataSourceName_" data-uid="C1.Report.DiagramChartField.DataSourceName*">DataSourceName Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Report_DiagramChartField_DataSourceName_" data-uid="C1.Report.DiagramChartField.DataSourceName*"></a>
<h4 id="C1_Report_DiagramChartField_DataSourceName" data-uid="C1.Report.DiagramChartField.DataSourceName">DataSourceName</h4>
<div class="markdown level1 summary"><p>Gets or sets the name of the data source for the chart.
The name must match a name of a data source in the report's DataSources collection.
Empty string indicates that the main data source will be used.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[C1Category(&quot;Data&quot;)]
[C1Description(&quot;DataSourceName&quot;, &quot;The diagram&#39;s data source. The default is null to use Nodes (unboun mode).&quot;)]
public string DataSourceName { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;C1Category(&quot;Data&quot;)&gt;
&lt;C1Description(&quot;DataSourceName&quot;, &quot;The diagram&#39;s data source. The default is null to use Nodes (unboun mode).&quot;)&gt;
Public Property DataSourceName As String</code></pre>
</div>
</div>
