# C1.Report.DiagramChartField

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Report_DiagramChartField" data-uid="C1.Report.DiagramChartField" class="text-break">DiagramChartField Class
</h1>
  <div class="markdown level0 summary"><p>Represents a report field with a chart which is implemented using the <b>FlexChart</b> control.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.Report.ReportObject.html">ReportObject</a></div>
    <div class="level2"><a class="xref" href="C1.Report.VisualReportObject.html">VisualReportObject</a></div>
    <div class="level3"><a class="xref" href="C1.Report.FieldBase.html">FieldBase</a></div>
    <div class="level4"><span class="xref">DiagramChartField</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.Report.IScriptContextProvider.html">IScriptContextProvider</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Report.html">C1.Report</a></h6>
  <h6><strong>Assembly</strong>: C1.Report.dll</h6>
  <h5 id="C1_Report_DiagramChartField_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DiagramChartField : FieldBase, IScriptContextProvider, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DiagramChartField
    Inherits FieldBase
    Implements IScriptContextProvider, ICloneable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Report_DiagramChartField__ctor" data-uid="C1.Report.DiagramChartField.#ctor">
          <a class="xref" href="C1.Report.DiagramChartField.-ctor.html#C1_Report_DiagramChartField__ctor">DiagramChartField()</a>
        </td>
        <td class="markdown level1 summary"><p>Initialize a new instance of the <a class="xref" href="C1.Report.FlexChartField.html">FlexChartField</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Report_DiagramChartField_DataSourceName" data-uid="C1.Report.DiagramChartField.DataSourceName">
          <a class="xref" href="C1.Report.DiagramChartField.DataSourceName.html#C1_Report_DiagramChartField_DataSourceName">DataSourceName</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="C1_Report_DiagramChartField_Diagram" data-uid="C1.Report.DiagramChartField.Diagram">
          <a class="xref" href="C1.Report.DiagramChartField.Diagram.html#C1_Report_DiagramChartField_Diagram">Diagram</a>
        </td>
        <td class="markdown level1 summary"><p>Gets collection of alt nodes.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Report_DiagramChartField_AssignFrom_C1_Report_ReportObject_System_Boolean_" data-uid="C1.Report.DiagramChartField.AssignFrom(C1.Report.ReportObject,System.Boolean)">
          <a class="xref" href="C1.Report.DiagramChartField.AssignFrom.html#C1_Report_DiagramChartField_AssignFrom_C1_Report_ReportObject_System_Boolean_">AssignFrom(ReportObject, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Assigns (copies) properties from another <a class="xref" href="C1.Report.FlexChartField.html">FlexChartField</a> to the current object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_DiagramChartField_BuildFlexDiagram_C1_Document_FlexChart_Chart_" data-uid="C1.Report.DiagramChartField.BuildFlexDiagram(C1.Document.FlexChart.Chart)">
          <a class="xref" href="C1.Report.DiagramChartField.BuildFlexDiagram.html#C1_Report_DiagramChartField_BuildFlexDiagram_C1_Document_FlexChart_Chart_">BuildFlexDiagram(Chart)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Report_DiagramChartField_CreateSame" data-uid="C1.Report.DiagramChartField.CreateSame">
          <a class="xref" href="C1.Report.DiagramChartField.CreateSame.html#C1_Report_DiagramChartField_CreateSame">CreateSame()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates instance of same class as this object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_DiagramChartField_GetContentAutoHeight_System_Double_" data-uid="C1.Report.DiagramChartField.GetContentAutoHeight(System.Double)">
          <a class="xref" href="C1.Report.DiagramChartField.GetContentAutoHeight.html#C1_Report_DiagramChartField_GetContentAutoHeight_System_Double_">GetContentAutoHeight(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Override this method to calculate the height of object on basis of its content,
this method is called when field can grow or shrink vertically.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_DiagramChartField_GetContentAutoSize_System_Double__System_Double__" data-uid="C1.Report.DiagramChartField.GetContentAutoSize(System.Double@,System.Double@)">
          <a class="xref" href="C1.Report.DiagramChartField.GetContentAutoSize.html#C1_Report_DiagramChartField_GetContentAutoSize_System_Double__System_Double__">GetContentAutoSize(out double, out double)</a>
        </td>
        <td class="markdown level1 summary"><p>Override this method to calculate sizes of object on basis of its content,
this method is called when field can grow or shrink vertically and horizontally.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_DiagramChartField_GetContentAutoWidth_System_Double_" data-uid="C1.Report.DiagramChartField.GetContentAutoWidth(System.Double)">
          <a class="xref" href="C1.Report.DiagramChartField.GetContentAutoWidth.html#C1_Report_DiagramChartField_GetContentAutoWidth_System_Double_">GetContentAutoWidth(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Override this method to calculate the width of object on basis of its content,
this method is called when field can grow or shrink horizontally.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_DiagramChartField_GetDataSource" data-uid="C1.Report.DiagramChartField.GetDataSource">
          <a class="xref" href="C1.Report.DiagramChartField.GetDataSource.html#C1_Report_DiagramChartField_GetDataSource">GetDataSource()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns <a class="xref" href="C1.Report.DataSource.html">DataSource</a> specified for this field in the <a class="xref" href="C1.Report.DiagramChartField.DataSourceName.html#C1_Report_DiagramChartField_DataSourceName">DataSourceName</a> property,
returns null if <a class="xref" href="C1.Report.DiagramChartField.DataSourceName.html#C1_Report_DiagramChartField_DataSourceName">DataSourceName</a> is null or empty, throws an exception
if <a class="xref" href="C1.Report.DataSource.html">DataSource</a> with specified name not found.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_DiagramChartField_GetPropsTable" data-uid="C1.Report.DiagramChartField.GetPropsTable">
          <a class="xref" href="C1.Report.DiagramChartField.GetPropsTable.html#C1_Report_DiagramChartField_GetPropsTable">GetPropsTable()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Report_DiagramChartField_InternalBuildBrick_C1_Report_Rendering_SubSectionBrick_" data-uid="C1.Report.DiagramChartField.InternalBuildBrick(C1.Report.Rendering.SubSectionBrick)">
          <a class="xref" href="C1.Report.DiagramChartField.InternalBuildBrick.html#C1_Report_DiagramChartField_InternalBuildBrick_C1_Report_Rendering_SubSectionBrick_">InternalBuildBrick(SubSectionBrick)</a>
        </td>
        <td class="markdown level1 summary"><p>This method should be overriden in descendant classes like Field, BarCodeField, ChartField and so on.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_DiagramChartField_InternalRefreshBrick_C1_Report_Rendering_FieldBrickBase_" data-uid="C1.Report.DiagramChartField.InternalRefreshBrick(C1.Report.Rendering.FieldBrickBase)">
          <a class="xref" href="C1.Report.DiagramChartField.InternalRefreshBrick.html#C1_Report_DiagramChartField_InternalRefreshBrick_C1_Report_Rendering_FieldBrickBase_">InternalRefreshBrick(FieldBrickBase)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
