<div class="header-panel member">
<h2><span class="identifier">AnnotationLayer</span> Class</h2>
<dl class="dl-horizontal">
<dt>File</dt><dd class="filename">wijmo.chart.annotation.js</dd>
<dt>Module</dt><dd><a href="topic/wijmo.chart.annotation.Module.html"><span class="identifier">wijmo.chart.annotation</span></a></dd>
<dt>Derived Classes</dt><dd><a href="topic/wijmo-wijmo.angular2.chart.annotation.WjFlexChartAnnotationLayer.Class.html"><span class="identifier">WjFlexChartAnnotationLayer</span></a></dd>
</dl>
<div class="comment"><p>Represents an annotation layer for <a href="topic/wijmo.chart.FlexChart.Class.html"><span class="identifier">FlexChart</span></a> and <a href="topic/wijmo.chart.finance.FinancialChart.Class.html"><span class="identifier">FinancialChart</span></a>.</p>
<p>The AnnotationLayer contains a collection of various annotation elements: texts, 
lines, images, rectangles etc.
To use the <a href="topic/wijmo.chart.annotation.AnnotationLayer.Class.html"><span class="identifier">AnnotationLayer</span></a>, create annotations and push them to the layer's 
items property.</p></div>
</div>
<div class="member-panel class members" ng-class="{ 'show-inherited' : ctx.showInherited, 'show-raisers' : ctx.showRaisers }">
<h3 class="node">Constructor</h3>
<ul>
<li class="mmethod"><a href="topic/wijmo.chart.annotation.AnnotationLayer.Class.html/#constructor">constructor</a></li>
</ul>
<h3 class="node">Properties</h3>
<ul>
<li class="mproperty"><a href="topic/wijmo.chart.annotation.AnnotationLayer.Class.html/#items">items</a></li>
</ul>
<h3 class="node">Methods</h3>
<ul>
<li class="mmethod"><a href="topic/wijmo.chart.annotation.AnnotationLayer.Class.html/#getItem">getItem</a></li>
<li class="mmethod"><a href="topic/wijmo.chart.annotation.AnnotationLayer.Class.html/#getItems">getItems</a></li>
</ul>
</div>
<h3>Constructor</h3>
<div id="constructor" class="member-panel mmethod">
<h3>constructor</h3>
<pre>constructor(chart: <a href="topic/wijmo.chart.FlexChartCore.Class.html"><span class="identifier">FlexChartCore</span></a>, options?): <a href="topic/wijmo.chart.annotation.AnnotationLayer.Class.html"><span class="identifier">AnnotationLayer</span></a></pre>
<div class="comment"><p>Initializes a new instance of the <a href="topic/wijmo.chart.annotation.AnnotationLayer.Class.html"><span class="identifier">AnnotationLayer</span></a> class.</p></div>
<dl class="dl-horizontal">
  <dt>Parameters</dt><dd></dd>
</dl>
<ul>
<li><b>chart</b>: <a href="topic/wijmo.chart.FlexChartCore.Class.html"><span class="identifier">FlexChartCore</span></a><br/><p>A chart to which the <a href="topic/wijmo.chart.annotation.AnnotationLayer.Class.html"><span class="identifier">AnnotationLayer</span></a> is attached.</p></li><li><b>options</b>:  <span class="badge">Optional</span><br/><p>A JavaScript object containing initialization data for 
<a href="topic/wijmo.chart.annotation.AnnotationLayer.Class.html"><span class="identifier">AnnotationLayer</span></a>.</p></li></ul>
<dl class="dl-horizontal">
  <dt>Returns</dt><dd><a href="topic/wijmo.chart.annotation.AnnotationLayer.Class.html"><span class="identifier">AnnotationLayer</span></a></dd>
</dl>
</div>
<h3 class="node">Properties</h3>
<div class="member-list" ng-class="{ 'show-inherited' : ctx.showInherited, 'show-raisers' : ctx.showRaisers }">
<div id="items" class="member-panel mproperty">
<h3>items</h3>
<div class="comment"><p>Gets the collection of annotation elements in the <a href="topic/wijmo.chart.annotation.AnnotationLayer.Class.html"><span class="identifier">AnnotationLayer</span></a>.</p></div>
<dl class="dl-horizontal">
  <dt>Type</dt><dd><a href="topic/wijmo.collections.ObservableArray.Class.html"><span class="identifier">ObservableArray</span></a></dd>
</dl>
</div>
</div>
<h3 class="node">Methods</h3>
<div class="member-list" ng-class="{ 'show-inherited' : ctx.showInherited, 'show-raisers' : ctx.showRaisers }">
<div id="getItem" class="member-panel mmethod">
<h3>getItem</h3>
<pre>getItem(name: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String" target="_blank"><span class="identifier">string</span></a>): <a href="topic/wijmo.chart.annotation.AnnotationBase.Class.html"><span class="identifier">AnnotationBase</span></a></pre>
<div class="comment"><p>Gets an annotation element by name in the <a href="topic/wijmo.chart.annotation.AnnotationLayer.Class.html"><span class="identifier">AnnotationLayer</span></a>.</p></div>
<dl class="dl-horizontal">
  <dt>Parameters</dt><dd></dd>
</dl>
<ul>
<li><b>name</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String" target="_blank"><span class="identifier">string</span></a><br/><p>The annotation's name.</p></li></ul>
<dl class="dl-horizontal">
  <dt>Returns</dt><dd><a href="topic/wijmo.chart.annotation.AnnotationBase.Class.html"><span class="identifier">AnnotationBase</span></a></dd>
</dl>
</div>
<div id="getItems" class="member-panel mmethod">
<h3>getItems</h3>
<pre>getItems(name: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String" target="_blank"><span class="identifier">string</span></a>): <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array" target="_blank"><span class="identifier">Array</span></a></pre>
<div class="comment"><p>Gets the annotation elements by name in the <a href="topic/wijmo.chart.annotation.AnnotationLayer.Class.html"><span class="identifier">AnnotationLayer</span></a>.</p></div>
<dl class="dl-horizontal">
  <dt>Parameters</dt><dd></dd>
</dl>
<ul>
<li><b>name</b>: <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String" target="_blank"><span class="identifier">string</span></a><br/><p>The annotations' name.</p></li></ul>
<dl class="dl-horizontal">
  <dt>Returns</dt><dd><a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array" target="_blank"><span class="identifier">Array</span></a></dd>
</dl>
</div>
</div>
