# C1.Web.Mvc.Fluent.FlexChartBaseBuilder-3.Legend

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Mvc_Fluent_FlexChartBaseBuilder_3_Legend_" data-uid="C1.Web.Mvc.Fluent.FlexChartBaseBuilder`3.Legend*">Legend Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Mvc_Fluent_FlexChartBaseBuilder_3_Legend_" data-uid="C1.Web.Mvc.Fluent.FlexChartBaseBuilder`3.Legend*"></a>
<h4 id="C1_Web_Mvc_Fluent_FlexChartBaseBuilder_3_Legend_C1_Web_Mvc_Chart_Position_" data-uid="C1.Web.Mvc.Fluent.FlexChartBaseBuilder`3.Legend(C1.Web.Mvc.Chart.Position)">Legend(Position)</h4>
<div class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.TreeMap-1.Legend.html#C1_Web_Mvc_TreeMap_1_Legend">Legend</a>.
Sets legend's position.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual TBuilder Legend(Position position)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function Legend(position As Position) As TBuilder</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="C1.Web.Mvc.Chart.Position.html">Position</a></td>
      <td><span class="parametername">position</span></td>
      <td><p>The position.</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><span class="xref">TBuilder</span></td>
      <td><p>Current builder.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Web_Mvc_Fluent_FlexChartBaseBuilder_3_Legend_" data-uid="C1.Web.Mvc.Fluent.FlexChartBaseBuilder`3.Legend*"></a>
<h4 id="C1_Web_Mvc_Fluent_FlexChartBaseBuilder_3_Legend_C1_Web_Mvc_Chart_LegendOrientation_" data-uid="C1.Web.Mvc.Fluent.FlexChartBaseBuilder`3.Legend(C1.Web.Mvc.Chart.LegendOrientation)">Legend(LegendOrientation)</h4>
<div class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.TreeMap-1.Legend.html#C1_Web_Mvc_TreeMap_1_Legend">Legend</a>.
Sets legend's orientation.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual TBuilder Legend(LegendOrientation orientation)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function Legend(orientation As LegendOrientation) As TBuilder</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="C1.Web.Mvc.Chart.LegendOrientation.html">LegendOrientation</a></td>
      <td><span class="parametername">orientation</span></td>
      <td><p>The orientation.</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><span class="xref">TBuilder</span></td>
      <td><p>Current builder.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Web_Mvc_Fluent_FlexChartBaseBuilder_3_Legend_" data-uid="C1.Web.Mvc.Fluent.FlexChartBaseBuilder`3.Legend*"></a>
<h4 id="C1_Web_Mvc_Fluent_FlexChartBaseBuilder_3_Legend_System_String_" data-uid="C1.Web.Mvc.Fluent.FlexChartBaseBuilder`3.Legend(System.String)">Legend(string)</h4>
<div class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.TreeMap-1.Legend.html#C1_Web_Mvc_TreeMap_1_Legend">Legend</a>.
Sets legend's maxSize.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual TBuilder Legend(string maxSize)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function Legend(maxSize As String) As TBuilder</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.string">string</a></td>
      <td><span class="parametername">maxSize</span></td>
      <td><p>The size can be specified in pixels: maxSize = '100px' or percents: maxSize = '50%'.</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><span class="xref">TBuilder</span></td>
      <td><p>Current builder.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Web_Mvc_Fluent_FlexChartBaseBuilder_3_Legend_" data-uid="C1.Web.Mvc.Fluent.FlexChartBaseBuilder`3.Legend*"></a>
<h4 id="C1_Web_Mvc_Fluent_FlexChartBaseBuilder_3_Legend_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.FlexChartBaseBuilder`3.Legend(System.Boolean)">Legend(bool)</h4>
<div class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.TreeMap-1.Legend.html#C1_Web_Mvc_TreeMap_1_Legend">Legend</a>.
Sets legend's reverse.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual TBuilder Legend(bool reverse)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function Legend(reverse As Boolean) As TBuilder</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.boolean">bool</a></td>
      <td><span class="parametername">reverse</span></td>
      <td><p>a value that determines whether the legend would be shown in reverse order or not.</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><span class="xref">TBuilder</span></td>
      <td><p>Current builder.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Web_Mvc_Fluent_FlexChartBaseBuilder_3_Legend_" data-uid="C1.Web.Mvc.Fluent.FlexChartBaseBuilder`3.Legend*"></a>
<h4 id="C1_Web_Mvc_Fluent_FlexChartBaseBuilder_3_Legend_System_Action_C1_Web_Mvc_Fluent_ChartLegendBuilder__" data-uid="C1.Web.Mvc.Fluent.FlexChartBaseBuilder`3.Legend(System.Action{C1.Web.Mvc.Fluent.ChartLegendBuilder})">Legend(Action&lt;ChartLegendBuilder&gt;)</h4>
<div class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.FlexChartBase-1.Legend.html#C1_Web_Mvc_FlexChartBase_1_Legend">Legend</a>.
Sets the chart legend.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual TBuilder Legend(Action&lt;ChartLegendBuilder&gt; build)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function Legend(build As Action(Of ChartLegendBuilder)) As TBuilder</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.action-1">Action</a>&lt;<a class="xref" href="C1.Web.Mvc.Fluent.ChartLegendBuilder.html">ChartLegendBuilder</a>&gt;</td>
      <td><span class="parametername">build</span></td>
      <td><p>The builder function.</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><span class="xref">TBuilder</span></td>
      <td><p>Current builder.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
