# FarPoint.Web.Chart.ChartModel

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Web_Chart_ChartModel" data-uid="FarPoint.Web.Chart.ChartModel" class="text-break">ChartModel Class
</h1>
  <div class="markdown level0 summary"><p>Represents a model of a chart.  The model contains a collection of
labels, a collection of legends, and a collection of plot areas.</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"><span class="xref">ChartModel</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.serialization.ixmlserializable">IXmlSerializable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Web.Chart.html">FarPoint.Web.Chart</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Web.Chart.dll</h6>
  <h5 id="FarPoint_Web_Chart_ChartModel_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(ExpandableObjectConverter))]
public class ChartModel : ICloneable, IXmlSerializable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(ExpandableObjectConverter))&gt;
Public Class ChartModel
    Implements ICloneable, IXmlSerializable</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="FarPoint_Web_Chart_ChartModel__ctor" data-uid="FarPoint.Web.Chart.ChartModel.#ctor">
          <a class="xref" href="FarPoint.Web.Chart.ChartModel.-ctor.html#FarPoint_Web_Chart_ChartModel__ctor">ChartModel()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new chart model.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_ChartModel__ctor_FarPoint_Web_Chart_ChartModel_" data-uid="FarPoint.Web.Chart.ChartModel.#ctor(FarPoint.Web.Chart.ChartModel)">
          <a class="xref" href="FarPoint.Web.Chart.ChartModel.-ctor.html#FarPoint_Web_Chart_ChartModel__ctor_FarPoint_Web_Chart_ChartModel_">ChartModel(ChartModel)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new chart model that is a deep copy of the specified
chart model.</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="FarPoint_Web_Chart_ChartModel_Fill" data-uid="FarPoint.Web.Chart.ChartModel.Fill">
          <a class="xref" href="FarPoint.Web.Chart.ChartModel.Fill.html#FarPoint_Web_Chart_ChartModel_Fill">Fill</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the background fill of the chart.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_ChartModel_LabelAreas" data-uid="FarPoint.Web.Chart.ChartModel.LabelAreas">
          <a class="xref" href="FarPoint.Web.Chart.ChartModel.LabelAreas.html#FarPoint_Web_Chart_ChartModel_LabelAreas">LabelAreas</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of label areas in the chart.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_ChartModel_LegendAreas" data-uid="FarPoint.Web.Chart.ChartModel.LegendAreas">
          <a class="xref" href="FarPoint.Web.Chart.ChartModel.LegendAreas.html#FarPoint_Web_Chart_ChartModel_LegendAreas">LegendAreas</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of legend areas in the chart.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_ChartModel_PlotAreas" data-uid="FarPoint.Web.Chart.ChartModel.PlotAreas">
          <a class="xref" href="FarPoint.Web.Chart.ChartModel.PlotAreas.html#FarPoint_Web_Chart_ChartModel_PlotAreas">PlotAreas</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the colleciton of plot areas in the chart.</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="FarPoint_Web_Chart_ChartModel_Clone" data-uid="FarPoint.Web.Chart.ChartModel.Clone">
          <a class="xref" href="FarPoint.Web.Chart.ChartModel.Clone.html#FarPoint_Web_Chart_ChartModel_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a deep copy of this chart model.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_ChartModel_GetSchema" data-uid="FarPoint.Web.Chart.ChartModel.GetSchema">
          <a class="xref" href="FarPoint.Web.Chart.ChartModel.GetSchema.html#FarPoint_Web_Chart_ChartModel_GetSchema">GetSchema()</a>
        </td>
        <td class="markdown level1 summary"><p>This method is reserved and should not be used.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_ChartModel_OnChanged_System_EventArgs_" data-uid="FarPoint.Web.Chart.ChartModel.OnChanged(System.EventArgs)">
          <a class="xref" href="FarPoint.Web.Chart.ChartModel.OnChanged.html#FarPoint_Web_Chart_ChartModel_OnChanged_System_EventArgs_">OnChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the Changed event.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_ChartModel_ReadXml_System_Xml_XmlReader_" data-uid="FarPoint.Web.Chart.ChartModel.ReadXml(System.Xml.XmlReader)">
          <a class="xref" href="FarPoint.Web.Chart.ChartModel.ReadXml.html#FarPoint_Web_Chart_ChartModel_ReadXml_System_Xml_XmlReader_">ReadXml(XmlReader)</a>
        </td>
        <td class="markdown level1 summary"><p>Generates an object from its XML representation</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Chart_ChartModel_WriteXml_System_Xml_XmlWriter_" data-uid="FarPoint.Web.Chart.ChartModel.WriteXml(System.Xml.XmlWriter)">
          <a class="xref" href="FarPoint.Web.Chart.ChartModel.WriteXml.html#FarPoint_Web_Chart_ChartModel_WriteXml_System_Xml_XmlWriter_">WriteXml(XmlWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts an object into its XML representation.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Web_Chart_ChartModel_Changed" data-uid="FarPoint.Web.Chart.ChartModel.Changed">
          <a class="xref" href="FarPoint.Web.Chart.ChartModel.Changed.html">Changed</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the chart model is changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
